Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


whitebox (version 2.3.1)

wbt_install: Download and Install 'WhiteboxTools'

Description

This function downloads the 'WhiteboxTools' binary if needed. Pre-compiled binaries are only available for download for 64-bit Linux (default compiled with glibc on Ubuntu 22.04; use platform="linux_musl" for musl/earlier versions of glibc), Windows and Mac OS (ARM and Intel) platforms. If you need WhiteboxTools for another platform follow the instructions to build from source: https://github.com/jblindsay/whitebox-tools

Usage

wbt_install(
  pkg_dir = wbt_data_dir(),
  platform = NULL,
  force = FALSE,
  remove = FALSE
)

install_whitebox( pkg_dir = wbt_data_dir(), platform = NULL, force = FALSE, remove = FALSE )

wbt_install_extension( extension = c("GeneralToolsetExtension", "AgricultureToolset", "DemAndSpatialHydrologyToolset", "LidarAndRemoteSensingToolset"), platform = NULL, destdir = dirname(wbt_exe_path(shell_quote = FALSE)) )

Value

Prints out the location of the WhiteboxTools binary, if found. NULL otherwise.

Arguments

pkg_dir

default install path is to whitebox package "WBT" folder

platform

character. Optional: suffix used for alternate platform names. Options include: "linux_musl"

force

logical. Force install? Default FALSE. When remove=TRUE passed to unlink() to change permissions to allow removal of files/directories.

remove

logical. Remove contents of "WBT" folder from pkg_dir? Default: FALSE

extension

Extension name

destdir

Directory to create /plugins/ directory for extracting extensions

Details

'WhiteboxTools' and all of its extensions can be uninstalled by passing the remove=TRUE argument.

Examples

Run this code
if (FALSE) {
install_whitebox()
}

Run the code above in your browser using DataLab