Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update snapshot tests #355

Merged
merged 1 commit into from
May 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions tests/testthat/_snaps/knitr-engine.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Basic use example:


```r
``` r
library(rextendr)

# create a Rust function
Expand All @@ -35,7 +35,7 @@

would create the following output in the knitted document:

```rust
``` rust
rprintln!("Hello from Rust!");

let x = 5;
Expand All @@ -50,27 +50,27 @@
Define variable `_x`:


```rust
``` rust
let _x = 1;
```

Define variable `_y`:


```rust
``` rust
let _y = 2;
```

Print:


```rust
``` rust
rprintln!("x = {}, y = {}", _x, _y);
#> x = 1, y = 2
```


```rust
``` rust
use pulldown_cmark::{Parser, Options, html};

#[extendr]
Expand All @@ -85,7 +85,7 @@
```


```r
``` r
md_text <- "# The story of the fox
The quick brown fox **jumps over** the lazy dog.
The quick *brown fox* jumps over the lazy dog."
Expand Down
Loading