awapi (AccuWeather.com API) is an R package providing convenient access to the AccuWeather.com API. You can use it to get historical weather conditions, hourly and daily forecasts for any location.
The AccuWeather API offers a free limited trial package (limited to 50 API calls a day).
There are a variety of methods for installing packages directly from github. You may want to research these and find the most appropriate for you.
# install devtools libraries from cran
install.packages("devtools")
# install awapi package
devtools::install_github("tayoso2/awapi")Alternatively, you could clone the entire repo and build manually.
library(awapi)
You will need an API key to use AccuWeather API. You can register for an API key at https://developer.accuweather.com.
R must be installed and Rscript should be in the search path.
- open RStudio
- change your working directory to this directory
- call
testthat::test_dir('test')
- Tayo Ososanya (tayo.ososanya@arcadisgen.com)
- awapi.R - daily forecast, hourly forecast, historical condition, temperature unit converter.
- R installation
R, weather, API, AccuWeather, elevation, postcode
Copyright (c) 2020 Arcadis Nederland B.V.
Without prior written consent of Arcadis Nederland B.V., this code may not be published or duplicated.