<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/serving-shiny-apps-in-the-internet-with-your-own-server/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://msperlin.github.io/2017-12-13-_Serving-shiny-apps-internet/"> R and Finance</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p> – </p>
<p>In this post I’ll share my experience in setting up my own virtual<br>
server for hosting shiny applications in <a rel="nofollow" href="https://www.digitalocean.com/" target="_blank">Digital<br>
Ocean</a>. First, context. I’m working in a<br>
academic project where we build a package for accessing financial data<br>
and corporate events directly from B3, the Brazilian financial exchange.<br>
The objective is to set a reproducible standard and facilite data<br>
acquisition of a large, and very interesting, dataset. The result is<br>
<a rel="nofollow" href="https://msperlin.github.io/2017-12-06-_Package-GetDFPData/" target="_blank">GetDFPData</a>.<br>
Since many researchers and students in Brazil are not knowledgeable in<br>
R, we needed to make it easier for people to use the software. A shiny<br>
app hosted in the internet is perfect for that. The app is available at<br>
<a rel="nofollow" href="http://www.msperlin.com/shiny/GetDFPData/" target="_blank">http://www.msperlin.com/shiny/GetDFPData/</a>.</p>
<p>You can host your own shiny app for free in<br>
<a rel="nofollow" href="https://www.shinyapps.io/" target="_blank">www.shiny.io</a>, but that comes with some<br>
<a rel="nofollow" href="https://www.shinyapps.io/#pricing" target="_blank">usage limitations</a>. While searching<br>
for alternatives, I’ve found this <a rel="nofollow" href="https://deanattali.com/2015/05/09/setup-rstudio-shiny-server-digital-ocean/" target="_blank">great<br>
post</a><br>
by <a rel="nofollow" href="https://deanattali.com/" target="_blank">Dean Attali</a> that clearly explains the<br>
steps for setting up a web server in a virtual machine from Digital<br>
Ocean. Despite being a 2015 post, it works perfectly. The best thing is<br>
that it only costs $5 per month, with the first two months for free.</p>
<p>Once the server is up and running, I can control it using ssh<br>
(terminal), send/retrieve files with github and dropbox, and run code<br>
with Rstudio server, which is basically a Rstudio session in a browser.<br>
Now I have my own corner in the internet, where I can server all my<br>
shiny apps with full control. I’m not only using the server for hosting<br>
web applications, but also running CRON jobs for periodically gather<br>
data for another project, which has to run a R script every day. No<br>
longer I have to worry or remember to turn on my computer every day. I’m<br>
sure I’ll find many more uses to it in the future.</p>
<p>I’m very happy in choosing the longer, more difficult path in publishing<br>
a shiny app in the internet. I learned a lot along the way. At first it<br>
felt overwhelming to configure every aspect of the server. But, if you<br>
know a bit of Linux, setting up your own webserver is not that<br>
difficult. I recommend everyone to give it a try.</p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://msperlin.github.io/2017-12-13-_Serving-shiny-apps-internet/"> R and Finance</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/mwRaWH23yQ8" height="1"></a></div>