Learn R Programming

RInno (version 0.0.3)

create_config: Creates an app config file, "config.cfg"

Description

Creates an app config file, "config.cfg"

Usage

create_config(app_name, R_version, app_dir, pkgs, remotes = "none",
  repo = "http://cran.rstudio.com", error_log = "error.log",
  app_repo_url = "none", auth_user = "none", auth_pw = "none",
  user_browser = "chrome")

Arguments

app_name

The name of the app being installed. It will be displayed throughout the installer and uninstaller in window titles, wizard pages, and dialog boxes. See [Setup]:AppName for details. For continuous installations, app_name is used to check for an R package of the same name, and update it. The Continuous Installation vignette has more details.

R_version

R version to use, defaults to: paste0(R.version$major, '.', R.version$minor).

app_dir

Shiny app's directory, defaults to getwd().

pkgs

String vector of the shiny app's default repo package dependencies. See create_config for how to change the default repo.

remotes

Character vector of GitHub repository addresses in the format username/repo[/subdir][\@ref|#pull] for GitHub package dependencies.

repo

Default repository to install package dependencies from. This defaults to repo = "http://cran.rstudio.com".

error_log

Name of error logging file. Contains start up errors from run.R.

app_repo_url

Repository address in the format "https://bitbucket.org/username/repo" (repo = app_name). Only Bitbucket and GitHub repositories are supported.

auth_user

Authorized username. It is recommended to create a read-only account for each app. Support for OAuth 2 and tokens is in the works.

auth_pw

Password to Bitbucket or Github.

user_browser

Character for the default browser. Options include "chrome", "firefox", and "ie."

Value

A json file, config.cfg, in app_dir/utils.

See Also

create_app.