Add anapp.R at the root of your package to deploy on RStudio Connect
Source:R/add_rstudio_files.Rrstudio_deploy.RdAdditionally, adds a.rscignore at the root of the{golem} project if thersconnect package version is>= 0.8.25.
Usage
add_positconnect_file(golem_wd=get_golem_wd(), open=TRUE,pkg)add_rstudioconnect_file(golem_wd=get_golem_wd(), open=TRUE,pkg)add_shinyappsio_file(golem_wd=get_golem_wd(), open=TRUE,pkg)add_shinyserver_file(golem_wd=get_golem_wd(), open=TRUE,pkg)add_rscignore_file(golem_wd=get_golem_wd(), open=TRUE,pkg)Arguments
- golem_wd
Path to the root of the package. Default is
get_golem_wd().- open
Should the created file be opened?
- pkg
Deprecated, please use golem_wd instead
Note
In previous versions, this function was called add_rconnect_file.
add_rstudioconnect_file is now deprecated; replace byadd_positconnect_file().
List of excluded files in.rscignore
.here
CODE_OF_CONDUCT.md
LICENSE{.md}
LICENCE{.md}
NEWS{.md}
README{.md,.Rmd,.HTML}
dev
man
tests
vignettes
Examples
# Add a file for Connectif(interactive()){add_positconnect_file()}# Add a file for Shiny Serverif(interactive()){add_shinyserver_file()}# Add a file for Shinyapps.ioif(interactive()){add_shinyappsio_file()}