All functions

construct_mran_url()

Construct MRAN url if snapshot date provided

copy_electricshine_package()

Copy electricShine package to an isolated folder. This is necessary to avoid dependency-install issues

copy_remotes_package()

Copy remotes package to an isolated folder. This is necessary to avoid dependency-install issues

copy_template()

Copy Electron boilerplate into app_root_path

create_build_directory()

Create a directory for creating the new app and copy template of files

create_folder()

Create an output folder

create_package_json()

Create the package.json file for npm

.check_arch()

Check if compatible architecture

.check_build_path_exists()

Check whether build path exists

.check_node_works()

Check if Node works

.check_npm_works()

Check if npm works

.check_package_provided()

Check package paths

.check_repo_set()

Check that a repo for packages/R was set

.download_r()

Download R installer given its url

.find_win_exe_url()

Find Windows R installer URL from MRAN snapshot

.install_mac_r()

Download and untar mac R into app folder

.install_win_r()

Install R for Windows at given path

.ping_url()

Check internet connection

.prompt_install_nodejs()

Prompt whether nodejs can be installed or not

.prompt_install_r()

Prompt whether R can be installed or not

electrify()

Meta-function

get_os()

Get operating system

install_nodejs()

Install Node.js

install_package()

Install from isolated lib

install_r()

Install R from MRAN date into electricShine folder

install_user_app()

Install shiny app package and dependencies

modify_background_js()

Modify background.js to include the call to the shiny app

modify_mac_r()

Change fixed paths to make R portable on Mac

run_build_release()

Create an electron-builder release

system_install_pkgs()

Run package installation using the newly-installed R

trim_r()

Remove html and pdf files from R installation

write_text()

Write to a file