Learn R Programming

fz (version 1.2.0)

install_model: Install a Model

Description

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

Usage

install_model(source, global = FALSE)

Value

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

Arguments

source

GitHub name (e.g. "Funz/Model-PerfectGas"), 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_model("Funz/Model-PerfectGas")
}

Run the code above in your browser using DataLab