package.skeleton
but is designed for source packages that want to include Stan Programs
that can be built into binary versions.rstan.package.skeleton(name = "anRpackage", list = character(),
environment = .GlobalEnv, path = ".",
force = FALSE, code_files = character(),
stan_files = character())
package.skeleton
code_files
.package.skeleton
and
then adds the files listed in stan_files
to an exec directory.
Finally, it downloads several files from the rstanarm GitHub repository
to facilitate building the resulting package. Note that rstanarm is
licensed under the GPL >= 3, so package builders who do not want to be
governed by that license should not use the downloaded files that contain
R code. Otherwise, it may be worth considering whether it would be easier
to include your .stan programs and supporting R code in the # See example(package.skeleton)
Run the code above in your browser using DataLab