{"id":5220,"date":"2015-05-12T23:01:52","date_gmt":"2015-05-12T22:01:52","guid":{"rendered":"http:\/\/emilkirkegaard.dk\/en\/?p=5220"},"modified":"2015-05-12T23:33:37","modified_gmt":"2015-05-12T22:33:37","slug":"installing-an-rstudio-server-on-digitalocean","status":"publish","type":"post","link":"https:\/\/emilkirkegaard.dk\/en\/2015\/05\/installing-an-rstudio-server-on-digitalocean\/","title":{"rendered":"Installing an RStudio server on DigitalOcean"},"content":{"rendered":"<p><a href=\"http:\/\/deanattali.com\/2015\/05\/09\/setup-rstudio-shiny-server-digital-ocean\/\">Not as easy as claimed<\/a>, but not that difficult. I used the default values and stuff with Ubuntu like in the guide.<\/p>\n<p>Some difficulties:<\/p>\n<p><strong>Had to learn SSH<\/strong><\/p>\n<p><a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-use-ssh-keys-with-putty-on-digitalocean-droplets-windows-users\">Just read this<\/a>.<\/p>\n<p><strong>No email was sent with password<\/strong><\/p>\n<p>Apparently, this is not done when using SSH, see above guide.<\/p>\n<p><strong>Don&#8217;t skip making a second user<\/strong><\/p>\n<p>If you do, you can&#8217;t log into RStudio server later.<\/p>\n<p><strong>Devtools package won&#8217;t install<\/strong><\/p>\n<p>It has various dependencies in the unix. Run these:<\/p>\n<pre>sudo apt-get update\r\nsudo apt-get install libxml2-dev\r\nsudo apt-get install libssl-dev<\/pre>\n<p>Then it worked for me. For now.<\/p>\n<p><strong>You installed stuff but the server won&#8217;t actually show the Shiny apps<\/strong><\/p>\n<p>Some stuff needs to be installed more than once. You will need to type these:<\/p>\n<pre><code>sudo su - \\ -c \"R -e \\\"install.packages('shiny', repos='http:\/\/cran.rstudio.com\/')\\\"\"\r\nsudo su - \\ -c \"R -e \\\"install.packages('rmarkdown', repos='http:\/\/cran.rstudio.com\/')\\\"\"<\/code><\/pre>\n<p>Which made it work for me. No restarts necessary.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;t skip making a second user If [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2089],"tags":[1951,1979,2168,2095,2167],"class_list":["post-5220","post","type-post","status-publish","format-standard","hentry","category-programming","tag-linux","tag-r","tag-rstudio","tag-shiny","tag-ubuntu","entry"],"_links":{"self":[{"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/posts\/5220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/comments?post=5220"}],"version-history":[{"count":3,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/posts\/5220\/revisions"}],"predecessor-version":[{"id":5223,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/posts\/5220\/revisions\/5223"}],"wp:attachment":[{"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/media?parent=5220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/categories?post=5220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/tags?post=5220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}