Installing RStan on Debian 10 (Buster), Ubuntu 18.04 (Bionic Beaver)

Operating System: Debian 10, Ubuntu 18.04

I didn’t find appropriate instructions for installing RStan cleanly on Debian and Ubuntu systems. For anyone interested, here’s what worked for me.

  1. Install R.
  2. apt install build-essential libxml2-dev libcurl4-openssl-dev libssl-dev
  3. Inside R, install.packages("rstan", repos = "", dependencies=TRUE).

For me, this is easier than using the ppa. And it’s a good backup in case the ppa lags the CRAN release.