Set up R/Stan on Amazon EC2

December 10, 2014

(This article was first published on Christopher Gandrud (간드루드 크리스토파), and kindly contributed to R-bloggers)

A few months ago I posted the script that I use to set up my R/JAGS working environment on an Amazon EC2 instance.

Since then I’ve largely transitioned to using R/Stan to estimate my models. So, I’ve updated my setup script (see below).

There are a few other changes:

  • I don’t install/use RStudio on Amazon EC2. Instead, I just use R from the terminal. Don’t get me wrong, I love RStudio. But since what I’m doing on EC2 is just running simulations (I handle the results on my local machine), RStudio is overkill.

  • I don’t install git anymore. Instead I use source_url (from devtools) and source_data (from repmis) to source scripts from GitHub. Again all of the manipulation I’m doing to these scripts is on my local machine.

To leave a comment for the author, please follow the link and comment on their blog: Christopher Gandrud (간드루드 크리스토파). offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)