Installing and loading SIMPLEGEN

SIMPLEGEN uses the cpp11 package to run C++ code from within R, meaning you will need a C++ compiler. To get one:

- On Windows, install [Rtools](https://cran.r-project.org/bin/windows/Rtools/)
- On Mac, install Xcode from the app store.
- On Linux, sudo apt-get install r-base-dev or similar.

Next, in R, ensure that you have the devtools package installed by running

find.package("devtools")

If you already have devtools you should see a link to the package’s installation, or if not you will see an error. You can install devtools by running

install.packages("devtools", repos = 'http://cran.us.r-project.org')

Now you can install the SIMPLEGEN package directly from GitHub by running

devtools::install_github("mrc-ide/SIMPLEGEN")

Assuming everything installed correctly, load the package using

library(SIMPLEGEN)

You can test that the package is loaded and working by running the following command, which should produce the following output:

## SIMPLEGEN loaded successfully!

If you have any problems installing, please raise an issue on github.