Skip to content
Prev 590 / 696 Next

[R-sig-dyn-mod] Using dynamically compiled code for use with deSolve in a new package

Hi,

including Fortran and/or C sources in /src is exactly what we (and the 
other CRAN authors) do. It is self-evident, that binary code (like dlls) 
cannot be included in portable packages, that are expected to run on 
different operating systems. Details are found in "Writing R Extensions".

I don't see a problem with roxygen2, this is exactly how it was 
implemented in package "growthrates", mentioned earlier. Let's assume we 
have a package called "foo", add the following roxygen-directives to a 
file "R/foo-package.R":

#' @useDynLib foo
#'
#' @importFrom deSolve ode

Hope it helps,

Thomas
On 29.11.2017 14:44, Rampal S. Etienne wrote: