rmf_install: Install external codes

View source: R/install.R

rmf_installR Documentation

Install external codes

Description

This function installs external codes that are used by RMODFLOW.

Usage

rmf_install(code = "all", overwrite = NULL)

rmf_installed_codes()

Arguments

code

Character vector with the codes to install, or "all" (default).

overwrite

Logical. Overwrite when the code is already installed? If NULL (default), the user is asked what to do in an interactive session. An error message is issued otherwise.

Details

Supported software

All MODFLOW variants documented at the Online Guide to MODFLOW, except for MODFLOW-2000. I.e. MODFLOW-2005, MODFLOW-OWHM, MODFLOW-NWT, MODFLOW-LGR and MODFLOW-CFP. The zip files with windows binaries hosted at the USGS websites are downloaded and extracted in the installation directory. The main folder names are modified in order to have more consistency.

Installation location

The default installation location is file.path(system.file(package = "RMODFLOW"), "code"), but it can be altered by setting option RMODFLOW.path.

rmf_installed_codes() shows which codes are installed in the default installation location as set by the RMODFLOW.path option.

Value

rmf_installed_codes() returns an invisible character vector with installed code names.

See Also

rmf_guide() for launching the Online Guide to MODFLOW or specific pages thereof.

Examples

## Not run: 
rmf_install() # Install all codes.
rmf_install("2005") # Install MODFLOW-2005.
rmf_install("MODFLOW-2005") # Install MODFLOW-2005.
rmf_install(c(2005, "MODFLOW-NWT", "cfp")) # Install different variants.

## End(Not run)
## Not run: 
rmf_installed_codes()

## End(Not run)

rogiersbart/RMODFLOW documentation built on Jan. 14, 2023, 4:21 a.m.