vignettes/building_the_vignettes.md

Building package vignettes

Required software

Unless you only want to build vignettes written in Markdown (".Rmd" files), you will need a TeX installation of some sort. Here are two options:

r install.packages('tinytex') tinytex::install_tinytex() # Install a few LaTeX packages needed by the vignettes but not # included in tinytex: tinytex::tlmgr_install(c('siunitx', 'babel-english', 'footnotebackref', 'listings', 'appendix', 'pgf'))

(If you install TeX in this way, you will either need to build the vignettes using one of the Alternative options given below or add TinyTex's bin directory to your shell path. You can find the root of the TinyTex installation with the R function tinytex::tinytex_root().)

If you use the second alternative build option listed below, you will also need the R package devtools: r install.packages('devtools')

Build procedure

The following instructions assume that the root of the BioCro source tree is a directory named biocro.

Alternative options

Here are some alternative methods of building vignettes that don't require re-installing BioCro.

This method is relatively fast and so is especially useful if you are writing a new vignette or revising an existing one. If the vignette being built uses any BioCro code, there must be a version of BioCro installed.

This method doesn't require that BioCro be installed. But it builds and installs BioCro in a temporary location and then builds all the vignettes, and thus it can be somewhat time consuming. Moreover, by default it gives very little indication of build progress, and so it may be useful to override this default and set quiet = FALSE in the function argument list.



ebimodeling/biocro documentation built on May 3, 2024, 7:52 p.m.