climateR

R wrapper for MetaWeather API

Contributors

Latest

About

climateR is a R API wrapper which offers offers 3 functions that enable the user to call for data from the MetaWeather API:

Installation

You can install climateR from Github with:

# install.packages("devtools")
devtools::install_github("UBC-MDS/climateR")

Usage Examples

library(climateR)
# Plot weather state of Vancouver and Seattle on map

get_weather(cities = c("Vancouver", "Seattle", "Boston"), continent = "North America")
# Get sunrise, sunset, and total day time for Instanbul today

suntime("Istanbul")
# Get value for Vancouver on 2017/8/30

getpastinfo("Vancouver", "2017/8/30")

License

Future Developments

The climateR wrapper will be improved in the future to include weather icons and cities from different parts of the world and not just from one continent.

Contributing

This is an open source project. Please follow the guidelines below for contribution. - Open an issue for any feedback and suggestions. - For contributing to the project, please refer to Contributing for details.

This is an open source project. So feedback, suggestions and contributions are very welcome. For feedback and suggestions, please open an issue in this repo. If you are willing to contribute this package, please refer to Contributing guidelines for details. Add a new chunk by clicking the Insert Chunk button on the toolbar or by pressing Ctrl+Alt+I.

When you save the notebook, an HTML file containing the code and output will be saved alongside it (click the Preview button or press Ctrl+Shift+K to preview the HTML file).

The preview shows you a rendered HTML copy of the contents of the editor. Consequently, unlike Knit, Preview does not run any R code chunks. Instead, the output of the chunk when it was last run in the editor is displayed.



UBC-MDS/climateR documentation built on May 30, 2019, 11:41 a.m.