Skip to content

Instantly share code, notes, and snippets.

@lilywang1988
Last active August 1, 2021 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lilywang1988/170fbf1bbea1a6c23bc43a0dc871a0ca to your computer and use it in GitHub Desktop.
Save lilywang1988/170fbf1bbea1a6c23bc43a0dc871a0ca to your computer and use it in GitHub Desktop.
Install Rstudio and the dependencies for eSIR on Ubuntu 20.04.2

Install R, devtools, jags, rjags, eSIR , rstan, and Rstudio on Ubuntu 20.04.2

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment