Creates an app config file, "utils/config.cfg"
create_config(app_name, app_dir = getwd(), pkgs = c("jsonlite",
"remotes", "magrittr"), pkgs_path = "library", remotes = "none",
repo = "https://cran.rstudio.com", error_log = "error.log",
app_repo_url = "none", auth_user = "none", auth_pw = "none",
auth_token = "none", user_browser = "electron")
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.
Development app's directory, defaults to getwd()
.
Character vector of package dependencies. Remote development versions are supported via remotes
. pkgs
are downloaded into file.path(app_dir, pkgs_path)
as Windows binary packages (.zip). If you build binary packages and store them there before calling create_app
, they will be included as well.
Default location inside the app working directory to install package dependencies This defaults to pkgs_path = "bin"
Character vector of GitHub repository addresses in the format username/repo[/subdir][\@ref|#pull]
for GitHub package dependencies.
Default repository to install CRAN package dependencies. Defaults to repo = "https://cran.rstudio.com"
.
Name of error logging file. Contains start up errors from run.R.
Repository address for continuous installations in the format "https://bitbucket.org/username/repo"
(repo = app_name
). Only Bitbucket and GitHub repositories are supported.
Bitbucket username. It is recommended to create a read-only account for each app. Support for OAuth 2 and tokens is in the works.
Bitbucket password matching the above username.
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.
Character for the default browser. Options include "chrome", "firefox", and "ie."
A json file, config.cfg, in app_dir
/utils.