--
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/f7457752-3f18-4e2f-ae84-522043707990%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/4a7141e9-0ef4-4069-bb4d-31949219817e%40googlegroups.com.
shinAppDir(system.file("C:/Folder/With/App/File), package = shiny", options = list(..))
shinAppDir(system.file("C:/Folder/With/App/File), package = shiny", options = list(..))
--
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/e46dcfc6-2a2a-49e4-8f4b-b2f6be6fb6d9%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/e46dcfc6-2a2a-49e4-8f4b-b2f6be6fb6d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Regards,
------------------------------------------------------------------------------------------------------------
Parth Khare | Data Scientist | Mobile: +91 9868485655 |
Photo-stream: https://www.flickr.com/photos/112535056@N08/
Create a directory for the app just like normal. Add an app.R file that contains simply this line:shiny::shinyAppDir("relative-path-to-appdir-within-inst", system.file(package = "yourpackage"))I *believe* that should work.
--
You received this message because you are subscribed to a topic in the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shiny-discuss/ibAXs3zLWAs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shiny-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/969b0482-8d34-40df-a35f-1ef7de230b97%40googlegroups.com.
I believe that global.R is supposed to be fine (since it's an intended feature to use) and that it's a bug that shinyAppDir doesn't recognize it. I did open a bug report about it a while ago See https://github.com/rstudio/shiny-server/issues/180On 17 August 2016 at 08:52, Barry Rowlingson <b.rowl...@gmail.com> wrote:
On Thursday, September 24, 2015 at 5:54:02 PM UTC+1, Joe Cheng [RStudio] wrote:Create a directory for the app just like normal. Add an app.R file that contains simply this line:shiny::shinyAppDir("relative-path-to-appdir-within-inst", system.file(package = "yourpackage"))I *believe* that should work.
Running this way doesn't seem to run the code in global.R - so my boilerplate app.R for shiny server deployment looks like this:
path = system.file("shiny/appname",package = "mypackage")
source(file.path(path,"global.R"))
shiny::shinyAppDir(path)
although I suspect the real solution is to factor the code in global.R out. Is global.R considered harmful?
--
You received this message because you are subscribed to a topic in the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shiny-discuss/ibAXs3zLWAs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/969b0482-8d34-40df-a35f-1ef7de230b97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/CA%2Bj8Z%2BkekJgKB85j9s8UnYTr5KtOG4F_esSpg84_BR7w9aU-FQ%40mail.gmail.com.
Parth, the last one should've worked. Can you zip up that folder and send it to me so I can reproduce?Dean, Barry, this may be misguided but I left global.R support out of shinyAppFile/shinyAppDir because I thought it was a bad idea to have multiple, relatively independent Shiny apps that run concurrently, to all make changes to the global environment. Especially since the single-file app.R style lets you declare variables that are accessible in both ui and server, but do not pollute the global environment.Clearly it's a surprising behavior though. What do you think of the following alternatives:1) Run global.R, let it modify the global environment, don't worry about collisions between different subapps2) Run global.R but not in the global environment, just in an environment that ui.R and server.R (or app.R) inherit. I like the semantics but don't like that it's titled "global.R" and isn't global.3) Don't run global.R, but if one is detected, emit a warning that it will be ignored
On Wed, Aug 17, 2016 at 9:47 AM Dean Attali <daat...@gmail.com> wrote:
I believe that global.R is supposed to be fine (since it's an intended feature to use) and that it's a bug that shinyAppDir doesn't recognize it. I did open a bug report about it a while ago See https://github.com/rstudio/shiny-server/issues/180On 17 August 2016 at 08:52, Barry Rowlingson <b.rowl...@gmail.com> wrote:
On Thursday, September 24, 2015 at 5:54:02 PM UTC+1, Joe Cheng [RStudio] wrote:Create a directory for the app just like normal. Add an app.R file that contains simply this line:shiny::shinyAppDir("relative-path-to-appdir-within-inst", system.file(package = "yourpackage"))I *believe* that should work.
Running this way doesn't seem to run the code in global.R - so my boilerplate app.R for shiny server deployment looks like this:
path = system.file("shiny/appname",package = "mypackage")
source(file.path(path,"global.R"))
shiny::shinyAppDir(path)
although I suspect the real solution is to factor the code in global.R out. Is global.R considered harmful?
--
You received this message because you are subscribed to a topic in the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shiny-discuss/ibAXs3zLWAs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shiny-discuss+unsubscribe@googlegroups.com.
--
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/969b0482-8d34-40df-a35f-1ef7de230b97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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-discuss+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to shiny-discus...@googlegroups.com.
--
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/969b0482-8d34-40df-a35f-1ef7de230b97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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/515eed03-c152-43c0-9f9a-90313999f88e%40googlegroups.com.