Installing an RStudio server on DigitalOcean

Not as easy as claimed, but not that difficult. I used the default values and stuff with Ubuntu like in the guide.

Some difficulties:

Had to learn SSH

Just read this.

No email was sent with password

Apparently, this is not done when using SSH, see above guide.

Don’t skip making a second user

If you do, you can’t log into RStudio server later.

Devtools package won’t install

It has various dependencies in the unix. Run these:

sudo apt-get update
sudo apt-get install libxml2-dev
sudo apt-get install libssl-dev

Then it worked for me. For now.

You installed stuff but the server won’t actually show the Shiny apps

Some stuff needs to be installed more than once. You will need to type these:

sudo su - \ -c "R -e \"install.packages('shiny', repos='http://cran.rstudio.com/')\""
sudo su - \ -c "R -e \"install.packages('rmarkdown', repos='http://cran.rstudio.com/')\""

Which made it work for me. No restarts necessary.