-
Notifications
You must be signed in to change notification settings - Fork 18
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
Usage of global.R #18
Comments
@stla I have tried to recreate an app with a global.R and an app.R and I could not get global.R to be automatically called with an Unexpected behavior reprex:
|
However, when using ui.R and server.R, FixThese lines will need to be changed to: if (!(
fs::file_exists(fs::path(appdir, "app.R")) ||
fs::file_exists(fs::path(appdir, "server.R"))
)) {
stop("Directory ", appdir, " does not contain an app.R or server.R file.")
} Working reprex with fix:
|
Wow, I prefer the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
ShinyLive is very cool, thank you for the work.
I made an app
app.R
accompanied with aglobal.R
file butglobal.R
is not executed. I tried to put it at first position in the JSON file but that does not solve the problem. If it is not possible to useglobal.R
, it would be nice to add this feature. If it is possible, how?The text was updated successfully, but these errors were encountered: