Skip to contents

This is a helper function to install wget. Currently it only works on Windows platforms. The wget.exe executable will be downloaded from https://eternallybored.org/misc/wget/ and saved to either a temporary directory or your user appdata directory (see the use_appdata_dir parameter).

Usage

bb_install_wget(force = FALSE, use_appdata_dir = FALSE)

Arguments

force

logical: force reinstallation if wget already exists

use_appdata_dir

logical: by default, bb_install_wget will install wget into a temporary directory, which does not persist between R sessions. If you want a persistent installation, specify use_appdata_dir=TRUE to install wget into your appdata directory (on Windows, typically something like C:/Users/username/AppData/Roaming/)

Value

the path to the installed executable

References

https://eternallybored.org/misc/wget/

See also

Examples

if (FALSE) {
  bb_install_wget()

  ## confirm that it worked:
  bb_wget("help")
}