Skip to content

Commit c91f4ef

Browse files
committed
revert to eval = F
1 parent fbb365f commit c91f4ef

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

vignettes/cpp11.Rmd

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@ knitr::opts_chunk$set(
1616
comment = "#>",
1717
eval = as.logical(Sys.getenv("CPP11_EVAL", "false"))
1818
)
19-
knitr::knit_hooks$set(strip_roxygen = function(before, options, envir) {
20-
if (before) {
21-
code <- options$code
22-
code <- gsub("/\\* roxygen start.*?roxygen end \\*/", "", code, perl = TRUE)
23-
options$code <- code
24-
options
25-
}
26-
})
2719
library(cpp11)
2820
```
2921

@@ -362,7 +354,7 @@ This is easy to do in RMarkdown by using `{cpp11}` instead of `{r}` at the begin
362354
It is possible to use `roxygen2` to document your C++ functions. Here is an
363355
example of how to do this:
364356

365-
```{cpp11, strip_roxygen = TRUE}
357+
```{cpp11, eval = FALSE}
366358
/* roxygen start
367359
@title Mean of a numeric vector
368360
@param x A numeric vector

0 commit comments

Comments
 (0)