Skip to content

Commit

Permalink
do not eval vignette chunks which should error (use purl=FALSE) (#6220)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-schwen authored Jul 8, 2024
1 parent de5272d commit e292428
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vignettes/datatable-programming.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The problem with this kind of interface is that we cannot easily parameterize th

### Example

```{r subset_error, error=TRUE}
```{r subset_error, error=TRUE, purl=FALSE}
my_subset = function(data, col, val) {
subset(data, col == val)
}
Expand Down Expand Up @@ -288,7 +288,7 @@ DT[, j, # the same as above but accepts character vector

Now let's try to pass a list of symbols, rather than list call to those symbols. We'll use `I()` to escape automatic _enlist_-ing but, as this will also turn off character to symbol conversion, we also have to use `as.name`.

```{r splice_not, error=TRUE}
```{r splice_not, error=TRUE, purl=FALSE}
DT[, j, # list of symbols
env = I(list(j = lapply(cols, as.name))),
verbose = TRUE]
Expand Down

0 comments on commit e292428

Please sign in to comment.