check_hydrus_exe: Check HYDRUS Executable and download if needed

View source: R/check_hydrus_exe.R

check_hydrus_exeR Documentation

Check HYDRUS Executable and download if needed

Description

Check HYDRUS Executable and download if needed

Usage

check_hydrus_exe(
  dir = file.path(system.file(package = "kwb.hydrus1d"), "extdata/hydrus1d"),
  skip_preinstalled = FALSE
)

Arguments

dir

target directory (default: file.path(system.file(package = "kwb.hydrus1d"), "extdata/hydrus1d"), in case compliant HYDRUS1D version is not available, executable will be downloaded from https://github.com/mrustl/hydrus1d/archive/refs/tags/v4.17.0140.zip

skip_preinstalled

if TRUE checking of preinstalled HYDRUS-1D will be skipped and executable will be downloaded, otherwise not (the default)

Value

path to preinstalled HYDRUS-1D executable (if compliant and parameter skip_preinstalled == FALSE), otherwise path to downloaded HYDRUS-1D

Examples

check_hydrus_exe(skip_preinstalled = FALSE)
check_hydrus_exe(skip_preinstalled = TRUE)

KWB-R/kwb.hydrus1d documentation built on Nov. 21, 2022, 4:54 a.m.