Skip to content
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

[FR] Inform that the whole package should be uploaded to the server as a comment in app.R when running golem::add_shinyserver_file() #1146

Open
ColinFay opened this issue Jun 21, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@ColinFay
Copy link
Member

When running golem::add_shinyserver_file(), the console output is:

> golem::add_shinyserver_file() 
── Creating _disable_autoload.R ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔ CreatedAdding '^app\\.R$' to '.Rbuildignore'Adding '^rsconnect$' to '.Rbuildignore'Adding 'pkgload' to Imports field in DESCRIPTIONRefer to functions with `pkgload::fun()`File created at /private/tmp/deleteme/app.R
To deploy, run:rsconnect::deployApp()

• Note that you'll need to upload the whole package to Shiny Server

But the app.R doesn't include the Note:

> cat(readLines("app.R"), sep = "\n")
# Launch the ShinyApp (Do not remove this comment)
# To deploy, run: rsconnect::deployApp()
# Or use the blue button on top of this file

pkgload::load_all(export_all = FALSE,helpers = FALSE,attach_testthat = FALSE)
options( "golem.app.prod" = TRUE)
deleteme::run_app() # add parameters here (if any)

Related #1127

@ColinFay ColinFay added the enhancement New feature or request label Jun 21, 2024
@ColinFay ColinFay modified the milestones: Version 0.6.0, Version 0.7.0 Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant