Meta-function
electrify(
app_name = NULL,
product_name = "product_name",
short_description = NULL,
semantic_version = NULL,
build_path = NULL,
mran_date = NULL,
cran_like_url = NULL,
function_name = NULL,
git_host = NULL,
git_repo = NULL,
local_package_path = NULL,
package_install_opts = NULL,
run_build = TRUE,
nodejs_path = file.path(system.file(package = "electricShine"), "nodejs"),
nodejs_version = "v12.16.2",
permission = FALSE,
mac_url = "https://mac.r-project.org/el-capitan/R-3.6-branch/R-3.6-branch-el-capitan-sa-x86_64.tar.gz"
)
This will be the name of the executable. It's a uniform type identifier (UTI) that contains only alphanumeric (A-Z,a-z,0-9), hyphen (-), and period (.) characters. see https://www.electron.build/configuration/configuration and https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102070
String - allows you to specify a product name for your executable which contains spaces and other special characters not allowed in the name property. https://www.electron.build/configuration/configuration
short app description
semantic version of your app, as character (not numeric!); See https://semver.org/ for more info on semantic versioning.
Path where the build files will be created, preferably points to an empty directory. Must not contain a folder with the name as what you put for electrify(app_name).
MRAN snapshot date, formatted as 'YYYY-MM-DD'
url to cran-like repository
the function name in your package that starts the shiny app
one of c("github", "gitlab", "bitbucket")
GitHub/Bitbucket/GitLab username/repo of your the shiny-app package (e.g. 'chasemc/demoAPP'). Can also use notation for commits/branch (i.e. "chasemc/demoapp@d81fff0).
path to local shiny-app package, if 'git_package' isn't used
optional arguments passed to remotes::install_github, install_gitlab, install_bitbucket, or install_local
logical, whether to start the build process, helpful if you want to modify anthying before building
path to nodejs
nodejs version to install
automatically grant permission to install nodejs and R
url to mac OS tar.gz