Learn R Programming

fz (version 1.2.0)

install_algorithm: Install an Algorithm

Description

Installs an algorithm from a GitHub repository name, URL, or local zip file into the user-level ~/.fz/algorithms/ directory (or system-level when global = TRUE).

Usage

install_algorithm(source, global = FALSE)

Value

Named list with installation details (path, name, ...).

Arguments

source

GitHub name (e.g. "Funz/Algorithm-MonteCarlo"), URL, or path to a local zip file.

global

Logical; install system-wide instead of user-level. Default FALSE.

Examples

Run this code
if (FALSE) {
# Requires the named GitHub repository to exist and network access;
# not run automatically since neither is guaranteed in all environments.
install_algorithm("Funz/Algorithm-MonteCarlo")
}

Run the code above in your browser using DataLab