Skip to content

Commit

Permalink
Workaround for yihui/knitr#2338
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Sep 10, 2024
1 parent bc0c9e2 commit 3df849f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vignettes/ring.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ buf$read(2)

If you try to read too far, then the buffer will underflow and you
will get an error:
``` {r error = TRUE}
``` {r error = TRUE, purl = TRUE}
buf$read(20)
```

Expand Down Expand Up @@ -342,7 +342,7 @@ buf$push(as.raw(1:8))
```

but if you pushed more or less it would be an error:
``` {r error = TRUE}
``` {r error = TRUE, purl = TRUE}
buf$push(as.raw(1:4))
```

Expand Down Expand Up @@ -410,7 +410,7 @@ buf$take(1)
```

If you try to take more than is in the buffer it is an error:
``` {r error = TRUE}
``` {r error = TRUE, purl = TRUE}
buf$take(10)
```

Expand Down Expand Up @@ -452,7 +452,7 @@ b$tail()
```

But other length strings cannot be added:
``` {r error = TRUE}
``` {r error = TRUE, purl = TRUE}
b$push("hello!")
```

Expand Down

0 comments on commit 3df849f

Please sign in to comment.