Skip to content

Commit

Permalink
Update template (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia-Kosenkov authored May 16, 2024
1 parent 43983bb commit 938786c
Showing 1 changed file with 7 additions and 7 deletions.
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

0 comments on commit 938786c

Please sign in to comment.