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

feat: add the code for rsconnect instead of asking people to click on the button #923

Closed
ColinFay opened this issue Oct 6, 2022 · 2 comments
Milestone

Comments

@ColinFay
Copy link
Member

ColinFay commented Oct 6, 2022

In 03_deploy, there should be a piece of code for deployment with rsconnect

@yogat3ch
Copy link
Contributor

Something like this?

rsconnect::deployApp(
  appName = desc::desc_get_field("Package"),
  appTitle = desc::desc_get_field("Package"),
  appFiles = c(
    "R/",
    "inst/",
    "data/",
    "NAMESPACE",
    "DESCRIPTION",
    "app.R",
    ".Rprofile",
    ".Renviron"
  ),
  appId = rsconnect::deployments(".")$appID,
  lint = FALSE,
  forceUpdate = TRUE
)

@ColinFay
Copy link
Member Author

Yes indeed :)

Would you be willing to do a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants