rstudio_deploy: Add an app.R at the root of your package to deploy on RStudio...

Description Usage Arguments Value Note Examples

Description

Add an app.R at the root of your package to deploy on RStudio Connect

Usage

1
2
3
4
5

Arguments

pkg

Path to the root of the package. Default is get_golem_wd().

open

Should the created file be opened?

Value

The path to the file, invisibly.

Note

In previous versions, this function was called add_rconnect_file.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Add a file for Connect
if (interactive()){
   add_rstudioconnect_file()
}
# Add a file for Shiny Server
if (interactive()){
    add_shinyserver_file()
}
# Add a file for Shinyapps.io
if (interactive()){
    add_shinyappsio_file()
}

Example output



golem documentation built on April 17, 2021, 9:06 a.m.