non-public code - do I need to make a local copy for deployment?

75 views
Skip to first unread message

Giles Heywood

unread,
Oct 2, 2015, 9:16:03 AM10/2/15
to Shiny - Web Framework for R
Hi

I'm sure there's a simple answer to this!

I have libraries which I access in my shinyapps.io application.  They are in reality packages R packages which I develop and maintain using git and bitbucket.  They are private projects.

I can't see how to use shinyapps::deployApp() with private repos - if I put install_bitbucket in ui.R, with authentication, I get an error "ERROR: unable to install packages " and I think the documentation says github only.  But can I install a private repository off github?

My workaround at the moment is just to copy the code into the project directory for the app and reference it (source it) there - but this backward step is not very nice and will someday lead to a version control error.

Any advice on the 'normal workflow' for deploying an app with a private package?  And more in general, is there recommended comprehensive documentation on the whole shiny ecosystem and shiny workflow?  There's lots of snippets of great documentation, but I'm looking for the 'manual'.

Thanks - Giles

Andy Kipp

unread,
Oct 2, 2015, 9:24:49 AM10/2/15
to Giles Heywood, Shiny - Web Framework for R
GIles,

shinyapps.io supports installing private packages from GitHub assuming two things: 1) you installed the package using `devtoos::install_github`, 2) you've linked your shinyapps.io account to GitHub and enabled 'private repository access' in the dashboard. Using this method, when you deploy your app we will download the package directly from GitHub.

We currently don't support similar functionality for bitbucket, but this is something we coud look at adding if we get lot of requests for it. It would probably work identically to the way GitHub works.

-Andy

--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/e79f3fcf-533f-402d-bcc1-eb0db2da0b83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Giles Heywood

unread,
Oct 2, 2015, 10:13:43 AM10/2/15
to Shiny - Web Framework for R, gilesh...@gmail.com
Thanks Andy. I have a migration task ahead.

Goodbye, bitbucket... nice knowin' ya!

Dufrain Consulting

unread,
Nov 24, 2015, 6:37:54 AM11/24/15
to Shiny - Web Framework for R, gilesh...@gmail.com
+1 for connecting shinyapps to private Bitbucket accounts.  I would find that extremely useful, since Bitbucket is my revision control host of choice.
Reply all
Reply to author
Forward
0 new messages