downloadCRN

0th

Percentile

A function to download all the CRN files

The function is passed a url for daily or hourly data, a matching directory, and sequence of years to download. The function will then download all the files and place them in the right directory.

Keywords
filetools
Usage
downloadCRN(url = CRN.DAILY.URL, directory = DAILY_DIR, years = seq(from = 2000, to = 2011, by = 1))
Arguments
url
Must be either CRN.DAILY.URL or CRN.HOURLY.URL
directory
Must match the url: DAILY_DIR or HOURLY_DIR
years
a sequence of years to download. On initial download you should download all files. For updates just use the last year
Details

The function iterates through the years in the sequence, fetches all the urls for the files in those subdirectories and downloads them all

Value

Aliases
  • downloadCRN
Examples
## Not run: 
#   downloadCRN()
#   downloadCRN( url = CRN.HOURLY.URL, directory = HOURLY_DIR )
# ## End(Not run)
 
Documentation reproduced from package crn, version 1.1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.