Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running a Shiny App from GitHub

Tags:

github

r

shiny

I have an R Shiny app that contains some sensitive information that I would not like to be made public, and do not want to pay for any services in order to get password authentication.

My question is if I create a private repository on GitHub with the server.R, ui.R and all supporting data and files, will anyone be able to run it with the runGitHub command (below) or in any way access my data?

library(shiny)    
runGitHub("<private repository name>", "<my user name>") 
like image 495
mlegge Avatar asked Jan 29 '15 13:01

mlegge


People also ask

Can I host a Shiny app on GitHub?

GitHub is a great place to organise and share your code using version control. You can also use it to host Shiny app code for others to download and run on their own computer.

Can you run Shiny app without R?

You can create a standalone shiny app, that runs on computers WITHOUT needing to install R nor any library.

How do you publish a Shiny app on a server?

Publish your Shiny App to RStudio Connect At the top of the editor, click Publish. In the Publish to Server window, confirm that your account is shown in the Publish To Account section and click Publish. You can monitor the status of the deployment in the RStudio IDE Deploy pane.


1 Answers

if I create a private repository on GitHub with the server.R, ui.R and all supporting data and files, will anyone be able to run it with the runGitHub command ... or in any way access my data?

If the repository is private only people who have been granted access should be able to access it. This is true through the GitHub website as well as via direct Git access, which is almost certainly what runGitHub() does.

do not want to pay for any services in order to get password authentication

In general, private repositories on GitHub aren't free. Currently the cheapest plan that includes private repos is the Micro plan at $7 per month.

There are other Git hosting providers that do provide free private repositories. BitBucket and GitLab both come to mind.

It may be possible for you to get free private hosting on GitHub, e.g. if you are a student.

I have an R Shiny app that contains some sensitive information that I would not like to be made public

Finally, depending on the nature of the "sensitive information" you are trying to protect, there may be better options. It is fairly common to provide things like API keys and passwords as environment variables (especially when using PaaS providers like Heroku), or to commit "template" files like config.template.ini.

like image 55
Chris Avatar answered Nov 01 '22 08:11

Chris