I have a Cpp function that is called inside an R function using Rcpp packgae. The R function accepts an inputDataFrame
and uses the Cpp function (also accepts a DataFrame) to calculate drug amounts (A1)
as a function of time. R then returns the inputDataFrame
with added column for the calculated amounts A1
.
I want to documnet the R functions (rather than the Cpp functions) using roxygen2
package in RStudio. However, when I used roxygen2
comments (as below), it did not generate the *.RD files and help pages the way you expected to do upon building the model. Please note that I have no trouble using roxygen2 when my package contains only R functions. In the latter case *.RD
files and help pages are generated automatically as expected.
Any hints on how to do that?