This function download and install standalone version of aria2 for Windows.

install_aria2(aria2_dir, force = FALSE)

Arguments

aria2_dir

Path where aria2 executable will be installed.

force

(optional) Logical: if TRUE, install even if it is already installed (default is FALSE).

Value

The path of aria2

Note

License: GPL 3.0

References

L. Ranghetti, M. Boschetti, F. Nutini, L. Busetto (2020). "sen2r": An R toolbox for automatically downloading and preprocessing Sentinel-2 satellite data. Computers & Geosciences, 139, 104473. DOI: 10.1016/j.cageo.2020.104473, URL: http://sen2r.ranghetti.info/.

Examples

if (FALSE) { # Run only on Windows install_aria2(aria2_dir = tempdir()) # ( use a non-temporary folder path instead of tempdir() ) }