For the most part we follow the Style Guide by Hadley Wickham. Please just try to be consistent with the style you see.
There is a Makefile
at the package root which controls the build process. If
you are working in RStudio, the ensr.Rproj
file will set up the project to use
the Makefile.
The vignette-spinners
directory contains .R and .Rmd files. The .R file
can be edited. The .Rmd files should not be edited manually. The .R files
are spun to .Rmd via knitr::spin
.
The time required to fit the models in the examples vignette will surpass the allowed time for vignette building on CRAN. As such, the vignette .Rmd files are rendered to .html and the R.rsp::asis vignette engine will be used to allow for static vignettes in the package itself.
The example data sets are documented in vignette-spinners/ensr-datasets.R
.
This allows the .R script to be sourced to build the .rda
files in the data
directory.
The vignette-spinners/ensr-example.R
script builds the examples vignette.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.