This is the code repository for the babar package. For examples of use, see:
- Fitting a growth curve with babar
- Comparing two growth curves with babar
- Comparing distibutions with nested sampling
This section describes the process for installing the package from source.
To build the package, make sure that your version of R has the following packages (needed to build the package vignettes):
- knitr
- R.rsp
You can install these from the R command prompt with:
install.packages(c('R.rsp', 'knitr'))
To build the package (including vignettes), from the command prompt type:
R CMD build babar
Then to install:
R CMD INSTALL babar_1.0.tar.gz
You can browse the package vignettes with:
browseVignettes(package='babar')
from within R.
Code functions are documented using inlinedocs. To rebuild the documentation:
install.packages('inlinedocs')
library(inlinedocs)
package.skeleton.dx('babar')
Compile in R using:
knit("worksheet1.Rnw")
or from the shell:
R -e 'library(knitr); knit("doc/worksheet1.Rnw");'
then run pdflatex
(twice) on the resulting .tex
file.
Generally you can ignore the warnings if the PDF looks fine.