create_config {RInno}R Documentation

Creates an app config file, "utils/config.cfg"

Description

Creates an app config file, "utils/config.cfg"

Usage

create_config(app_name, app_dir = getwd(), pkgs = c("jsonlite", "shiny",
  "magrittr"), locals = "none", remotes = "none",
  repo = "http://cran.rstudio.com", local_path = "local",
  error_log = "error.log", app_repo_url = "none", auth_user = "none",
  auth_pw = "none", auth_token = "none", user_browser = "chrome")

Arguments

app_name

The name of the app. It will be displayed throughout the installer's 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.

app_dir

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

pkgs

Character vector of package dependencies. To provide version limits, a named character vector with an inequality in front of the version number, pkgs = c(httr = ">=1.3"), is supported. Local .tar.gz packages and remote development versions are also supported via locals and remotes.

locals

Character vector of local package dependencies. Supports package versions like pkgs.

remotes

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

repo

Default repository to install CRAN package dependencies. Defaults to repo = "http://cran.rstudio.com".

local_path

Default location inside the app working directory to install local package dependencies from. This defaults to local_path = "local"

error_log

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

app_repo_url

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

auth_user

Bitbucket 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

Bitbucket password matching the above username.

auth_token

To install from a private Github repo, generate a personal access token (PAT) in https://github.com/settings/tokens and supply to this argument. This is safer than using a password because you can easily delete a PAT without affecting any others.

user_browser

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

Value

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

Author(s)

Jonathan M. Hill

See Also

create_app.


[Package RInno version 0.2.1 Index]