Download Shiny Server on AWS R Server (Linux) - r

Is there a way to download the shiny server package onto an AWS R Server run on Linux?
The main issue is that AWS's R Server doesn't show anything but R studio so i can not find a way to access terminal to administer the download

Related

open source shiny server on an instance on gcp can't connect to cloud sql

I am trying to host a shiny app on the open source shiny server which is installed on a virtual machine on gcp. The app is trying to connect to a remote Postgresql database that's also on gcp's cloud sql.
Below is my code for database connection
library(RPostgreSQL)
drv <- dbDriver("PostgreSQL")
con <- dbConnect(drv, dbname="test",
host="**.**.**.**",
user="username",
password="pwd", port=5432)
I had white listed the public ip address of my gcp's instance on cloud sql. But still my app doesn't run.
The app runs fine on R studio server(which is also installed on the same instance). Can someone please help or provide any suggestions.
Thanks
My app work's now. It seems I made a naive mistake.
For future users, below is what I did wrong and how I corrected it.
While creating the app on R studio server, I installed all my packages from R studio server. And I didn't thought that these packages are not installed at the root, they were installed at the user level and shiny-server can't access these.
I installed all the required packages again at the root
sudo su - -c "R -e \"install.packages('packagename', repos='https://cran.rstudio.com/')\""
and then my shiny-app works.

Is it possible to schedule an R script to run on machine image (EC2) within R?

I'm using a version of R studio hosted on an Amazon EC2 server. Is it possible to SCHEDULE R execute a script that downloads data from various APIs, cleans it, then downloads it to a remote server (Amazon RDS)?
Or is there a better way?

R shiny app showing package error

I have developed a shiny app using R. When i run the app in the local server it runs well but after installing shiny server in a different remote server when i run the app it shows error:there is no library called 'xyz'
Please help!.

R Shiny - host your own apps?

How can I host my own R Shiny App instead of hosted it at https://www.shinyapps.io?
I run these lines below and my app is uploaded to the server above,
> library(shiny)
> library(shinyapps)
> setwd("C:/firstapp")
> deployApp()
but we have our own live server that support R, so can we do that?
ps. I follow this tutorial and get our app hosted at shinyapps.io but we prefer host it our own. Is it possible?
The deployApp() function only works with shinyapps.io. When running your own installation of shiny server, you will have to take care of deploying and managing your applications manually. This includes installing any required R packages.
To host your own shiny-server, you should get started by downloading shiny-server or shiny-server pro from here: http://www.rstudio.com/products/shiny/shiny-server/
Download and install the shiny server from RStudio:
http://www.rstudio.com/products/shiny/shiny-server/
obviously you'll need a machine to host it on if you don't want your desktop getting thrashed.
You need to set-up a shiny server on your personal server if you want to host outside from shinyapps.io
http://www.rstudio.com/products/shiny/shiny-server/

Can RStudio (IDE NOT server) be configured to use remote R setup?

I am transitioning my debian setup into one where all debian-repository external apps run in dedicated docker containers.
In this context rstudio, of which I am a heavy user, has me puzzled ... does anybody have insight into whether it's possible to run it as a client to remote R installation?
What is a very cool feature of RStudio is RStudio Server. You install RStudio Server on you Ubuntu server and log in to a specific port where RStudio Server is running. You then get your full RStudio interface in your web browser. This allows you to run all your R analyses from any computer that has a modern browser and an internet connection.
R then runs on the remote server, asking almost no resource from the computer you are connecting from.

Resources