Learn R Programming

golem (version 0.4.1)

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

Description

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

Usage

add_rstudioconnect_file(pkg = get_golem_wd(), open = TRUE)

add_shinyappsio_file(pkg = get_golem_wd(), open = TRUE)

add_shinyserver_file(pkg = get_golem_wd(), open = TRUE)

Value

The path to the file, invisibly.

Arguments

pkg

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

open

Should the created file be opened?

Examples

Run this code
# 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()
}

Run the code above in your browser using DataLab