You can report issue about the content on this page here Want to share your content on R-bloggers? This framework starts by creating a package skeleton waiting to be filled. But, in a world where Shiny Applications are mostly created as a series of files, why bother with a package? Think about your last Shiny which was created as a single-file app. R or two files app ui. R and server.
First, metadata. In other words, the name of the app, the version number which is crucial to any serious, production-level project , what the application does, who to contact if something goes wrong. Then, you need to find a way to handle the dependencies. So, hey, it would be cool if we could have a Shiny app that only imports specific functions from a package, right? So yes, dependencies matter. You need to handle them, and handle them correctly. Something with thousands of lines of code.
Improve this question. Dataminer Dataminer 1, 3 3 gold badges 15 15 silver badges 21 21 bronze badges. Do any of the answers below answer your question? If so, please accept one. If not, let us know if you need anything else. Add a comment. Active Oldest Votes. Improve this answer. To get started: install. Jonathan Hill Jonathan Hill 1, 13 13 silver badges 23 23 bronze badges. Can you suggest a workaround? You will have to get someone with permission to install Inno Setup - jrsoftware.
Also worth mentioning, this works only for Windows — Paladinic. Luc Luc 9 9 silver badges 18 18 bronze badges. DeanAttali DeanAttali Thanks for your comments!
I did think about shinyapps. And may be I will explore it further. But my worry was cost to some extent and more importantly, the data privacy part given that the data being used by the app is fairly sensitive. And the organization that I work for, has some fairly stringent guidelines around data privacy and related issues. So I may run into some road blocks there. Secondly, it's not terribly important that users shouldn't see the code.. So if there is no easy way to mask the code, I will end up just shipping out the whole package.
Cost is free if you're not using it tooo much. If you're worried about cost and privacy, then use your own shiny server. This way it's still hosted by you and you control it. I guess it depends if you want the app to be completely shipped to the client or if you want to host it. It it is given to them as a standalone, it means you can't update it and fix bugs.
Just open a txt editor and add the following line: R -e "shiny::runApp 'app. For example add the line: Sys. Marc Warmoes Marc Warmoes 1 1 1 bronze badge. Sign up or log in Sign up using Google. I'm not sure exactly what context you are working in, but this is one of the problems that RStudio Connect was designed to resolve. If you do want to attack the problem directly in docker, this article may be useful to your quest as it discusses the surface of many of these options.
Some other gotchas to beware of:. Some of the other semantics can get pretty messy to deal with again, building packages from source can take a long time , but that packrat. You're definitely in a good place for this discussion, though! I know there have been several related discussions of reproducibility and docker on Community lately, so it might be worth searching for some of those! Thanks for your reply! I would probably go with one of the pro solutions like RStudio Connect looks great , but it is a non-commercial project, so I have to figure out a different way.
Because currently I have lots of R scripts which are not directly relevant for the current version of the shiny app only packages loaded in global. R are relevant and it is not necessary that all of those will be installed when I deploy the app. The build of the docker image should not take too long, otherwise it will be difficult to quickly fix bugs etc. Do you have tips on the handling of private packages? Currently I depend on an R package in a private Github repository and I need a safe way to pass the credentials.
If I use Git tags to mark specific package versions will packrat be able to install the correct version from Github? Sorry for the late reply here. I'm actually uncertain how packrat 's installation of private packages works I know it does record the SHA of the commit it installs, so it should be able to install the correct version from GitHub. I'm just not sure what hooks you have into the authentication process for the download.
Otherwise, I would say definitely open an issue in the packrat repo. About having too many dependencies, etc.
0コメント