Skip to content

Commit 5f49623

Browse files
committed
Notes about benchmark objects
1 parent e9e1a41 commit 5f49623

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

MAINTENANCE.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,15 @@ git clone https://github.com/RcppCore/Rcpp.git
3636
These only happen with the urlchecker package, they can be safely ignored and the real CRAN checks will not show them.
3737

3838

39-
### Ensure you use `Sys.setenv("CPP11_EVAL" = "true"); devtools::submit_cran()` when submitting.
39+
## Ensure you use `Sys.setenv("CPP11_EVAL" = "true"); devtools::submit_cran()` when submitting.
4040

4141
If you forget to set `CPP_EVAL = "true"` then the vignette chunks will not run properly and the vignettes will not be rendered properly.
4242

43-
### Usage with clangd
43+
## Regenerating benchmark objects used in `motivations.Rmd`
44+
45+
If you need to regenerate the benchmark objects (RDS objects) utilized in `motivations.Rmd`, then you should set `Sys.setenv("CPP11TEST_SHOULD_RUN_BENCHMARKS" = "TRUE")` before running the Rmd. You'll also need to make sure that cpp11test is actually installed. See `cpp11test:::should_run_benchmarks()` for more.
46+
47+
## Usage with clangd
4448

4549
Since cpp11 is header only, if you use clangd you'll have a bit of an issue because tools like bear and pkgload won't know how to generate the `compile_commands.json` file. Instead, you can create it manually with something like this, which seems to work well. Note that the paths are specific to your computer.
4650

0 commit comments

Comments
 (0)