To install R, follow this to install R.
Follow this to install devtools
.
Install jags and then rjags following
sudo apt-get install JAGS
R
In R console,
install.packages("rjags")
Then you should be ready to install eSIR
in the R console:
library(devtools)
install_github("lilywang1988/eSIR")
library(eSIR)
To install rstan, we need to install V8 first:
sudo apt-get install libv8-dev
Then in the R console install rstan.
It would be extremely convenient to access the familar rstudio in ubuntu, so I installed the rstudio following this.