vignettes/installation.Rmd
installation.Rmd
drjacoby relies on the Rcpp package, which requires the following OS-specific steps:
Install g++ with
sudo apt-get update
sudo apt-get install g++
Irrespective of which system you use above, you should then install and load Rcpp with
install.packages("Rcpp")
library(Rcpp)
You can check the version number to make sure it has properly installed
packageVersion("Rcpp")
Next, in R, ensure that you have the devtools package installed by running
install.packages("devtools", repos='http://cran.us.r-project.org')
Then install the drjacoby package directly from GitHub by running
devtools::install_github("mrc-ide/drjacoby")
If you have any problems installing then please raise an issue on github.
Assuming everything installed correctly, we need to load the package:
library(drjacoby)
#> Registered S3 method overwritten by 'GGally':
#> method from
#> +.gg ggplot2
You can test that the package is loaded and working by running the following command, which should produce this output:
check_drjacoby_loaded()
#> drjacoby loaded successfully!