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)
#> Checking if download of HYDRUS1D executable v4.17.0140 from 'https://github.com/mrustl/hydrus1d/archive/refs/tags/v4.17.0140.zip' was successful ... ok. (0.00 secs)
check_hydrus_exe(skip_preinstalled = TRUE)
#> Checking if download of HYDRUS1D executable v4.17.0140 from 'https://github.com/mrustl/hydrus1d/archive/refs/tags/v4.17.0140.zip' was successful ... ok. (0.00 secs)