I've built a shiny application that allows users to import genetic data, and visualize it. I want users to be able to pass in the path to their data as a parameter into the server. Is there any way to do this? The path would simply be a string that is passed into the server function.
The reason I want this passed in as a parameter, and not some other solution, is I am currently creating an R package of this application, and I will have a function within the package that will launch the application.
This function will look something like this:
runMyApp <- function() {
shiny::runApp(system.file("myapp", package="mypackage"))
}
Is there any way for me to pass a parameter into this runApp function, which in turn is passed into the server?
Thank you!