get_remote_file: Gets a file from a remote URL

Description Usage Arguments Value

View source: R/utils.r

Description

Since the URLs of UK government data appear to change quite frequently, the method will automatically cache a local copy.

Usage

1
get_remote_file(url, dir, update_cache = FALSE)

Arguments

url

the address of the file to download

dir

the directory to store the cached file in. If undefined, it defaults to $TEMP/decctools.

update_cache

boolean. Should the cached file be overwritten? Default = FALSE

Value

the file name (local path)


jkeirstead/decctools documentation built on May 19, 2019, 11:41 a.m.