Skip to contents

This routine downloads the latest .pyz file from Web Soil Survey

Usage

install_ssurgo_portal(
  verbose = TRUE,
  overwrite = FALSE,
  timeout = 3000,
  src =
    "https://websoilsurvey.sc.egov.usda.gov/DSD/Download/SsurgoPortal/SSURGO_Portal.zip",
  envname = "r-ssurgoportal",
  python_version = SSURGOPORTAL_PYTHON_VERSION(),
  gdal_version = SSURGOPORTAL_GDAL_VERSION(),
  ...
)

Arguments

verbose

Show download progress and location of file on successful download? Default TRUE

overwrite

Overwrite existing .PYZ file? Default: FALSE

timeout

Default: 3000 seconds. Temporarily overrides options() for timeout.

src

Default: "https://websoilsurvey.sc.egov.usda.gov/DSD/Download/SsurgoPortal/SSURGO_Portal.zip"

envname

Virtual environment to create for installation. Default: "r-ssurgoportal". Use "" for no virtual environment modifications.

python_version

character. Semantic version number of 'Python' to install if not available. Default: "3.10.2"

gdal_version

character. Semantic version number of 'GDAL' package to install. Default: ""

...

Additional arguments to create_ssurgo_venv() when venv=TRUE.

Value

Path to downloaded file, or try-error on error.

Examples

if (FALSE) { # \dontrun{
 install_ssurgo_portal()
} # }