-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shiny app as a package - static www
folder
#562
Comments
@paulimer Did you find a good resource explaining best practice for organising the folders? I face the same issue. |
After looking around a bit, I finally settled on an app inside the if (isTRUE(getOption("shiny.testmode"))) pkgload::load_all("path/to/app") #for instance "../..", or better : rprojroot::is_r_package$find_file(), which return the project root
shiny::shinyApp(
ui = your_package_name::your_package_ui()
server = your_package_name::your_package_server()
) |
Great, thank you @paulimer! |
Here you can find a related GitHub issue. |
Hi,
I have followed closely the Package chapter, which has been of great help in our app development. However, I think this structure somehow drops the automatic link to the
www
directory? Images are broken, connections can't be open, even though before switching to this structure it was all working.I have found a temporary solution in adding
addResourcePath(prefix = "www", directoryPath = "www")
. But it seems to mess testing somewhat, as I get awhile testing parts of the app with
shinytest2
.The text was updated successfully, but these errors were encountered: