getModule: Simple function to download a SpaDES module as GitHub...

View source: R/getModule.R

getModuleR Documentation

Simple function to download a SpaDES module as GitHub repository

Description

Simple function to download a SpaDES module as GitHub repository

Usage

getModule(..., overwrite = FALSE, modulePath)

Arguments

...

One or more github repositories as character strings that contain SpaDES modules. These should be presented in the standard R way, with account/repository@branch. If account is omitted, then "PredictiveEcology will be assumed.

overwrite

A logical vector of same length (or length 1) gitRepo. If TRUE, then the download will delete any existing folder with the same name as the repository provided in gitRepo

modulePath

A local path in which to place the full module, within a subfolder ... i.e., the source code will be downloaded to here: file.path(modulePath, repository). If omitted, and options(spades.modulePath) is set, it will use getOption("spades.modulePath"), otherwise it will use ".".


PredictiveEcology/SpaDES.install documentation built on March 10, 2023, 1:19 p.m.