Description
This tool downloads files from websites via an HTTP connection. It is designed to assist with the automation of workflows that require retrieval of data or programs from a website. If the file already exists in the specified destination folder the tool will not overwrite it unless you have explicitly used the 'overwrite=TRUE' option. You can optionally also run the downloaded file automatically upon download.
Note that the first time the tool is run it can take several seconds to establish an internet connection, but all subsequent calls will be much faster.
Syntax
download(url, folder, [overwrite], [run]);
| url | the full URL of the file to download | |
| folder | the destination folder for the downloaded file | |
| [overwrite] | (TRUE/FALSE): automatically replace a file if it already exists? (default=FALSE) | |
| [run] | (TRUE/FALSE) run the file after download? (default=FALSE) |
Example
download(url="http://www.spatialecology.com/download/htools.txt", folder="C:\tmp");