ExtCpp | R Documentation |
A class for generating C++ example files (code & test).
This class generates examples of an R function written in C++ using Rcpp, of a pure C++ function used to speed up computing, and of C++ code for testing the pure C++ function. As for the R function written with Rcpp, it is tested inside standard testthat R code.
biodb::ExtGenerator
-> ExtCpp
new()
Initializer.
ExtCpp$new(...)
...
See the constructor of ExtGenerator for the parameters.
Nothing.
clone()
The objects of this class are cloneable with this method.
ExtCpp$clone(deep = FALSE)
deep
Whether to make a deep clone.
# Generate C++ files pkgFolder <- file.path(tempfile(), 'biodbFoo') dir.create(pkgFolder, recursive=TRUE) biodb::ExtCpp$new(path=pkgFolder)$generate()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.