I have a package that uses both Rcpp and Roxygen2. I'd like to have R CMD build run a small prebuild script that runs compileAttributes()
and and roxygenise()
before it starting the build process. Is there a hook or mechanism to do this?
As @mnel suggested, you could use a build script using devtools
. Say a script named build.r
:
library(devtools)
document()
compileAttributes()
someotherscript()
build()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With