| download_weather | R Documentation | 
download_weather() makes it easy to download EnergyPlus weather files (EPW)
and design day files (DDY).
download_weather(
  pattern,
  filename = NULL,
  dir = ".",
  type = c("all", "epw", "ddy", "stat"),
  ask = TRUE,
  max_match = 3
)
| pattern | A regular expression used to search locations, e.g.  | 
| filename | File names (without extension) used to save downloaded files.
Internally,  | 
| dir | Directory to save downloaded files. Will create if not exist. | 
| type | File type to download. Only applicable to data provided by
EnergyPlus website. For OneBuilding.org,  | 
| ask | If  | 
| max_match | The max results allowed to download when  | 
A character vector containing paths of downloaded files.
There are 2 data sources:
EnergyPlus sources allow downloading EPW, STAT, and DDY files separately while OneBuilding sources can only download them all through a ZIP file.
Hongyuan Jia
## Not run: 
download_weather("los angeles.*tmy3", "LosAngeles", tempdir(), ask = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.