download_weather: Download EnergyPlus Weather File (EPW) and Design Day File (DDY)
Description
download_weather() makes it easy to download EnergyPlus weather files (EPW)
and design day files (DDY). Basically, it
Usage
download_weather(pattern, filename = NULL, dir = ".", type = c("all",
"epw", "ddy"), ask = TRUE, max_match = 3)
Arguments
pattern
A regular expression used to search locations, e.g. "los angeles.*tmy3". The search is case-insensitive.
filename
File names (without extension) used to save downloaded files.
Internally, make.unique() is called to ensure unique names.
dir
Directory to save downloaded files
type
File type to download. Should be one of "all", "epw" and
"ddy". If "all", both weather files and design day files will be
downloaded.
ask
If TRUE, a command line menu will be shown to let you select
which one to download. If FALSE and the number of returned results is
less than max_match, files are downloaded automatically without asking.
max_match
The max results allowed to download when ask is FALSE.
Value
A character vector containing paths of downloaded files.