knitr::opts_chunk$set(echo = TRUE)

Notebook for tracking the 534 project

Jan 26 We attempted to register for car2go and Google Map API (metirx) and test API connection. However, car2og deny to grant us access, and Google Maps is not free. We have to come up with some other API.

Jan 27 We decided to use weatherstack API data to compare and track changes in weather and climate inside of Canada. Dr. Narayan approved our proposal. We researched some useful R libraries for time series plotting.

Jan 30 Registered on weatherstack.com, Applied for API key. And realized that we need to pay for the API for complete functionalities, it will be $5.50 each.

I build up basic R package structure, and set up git repository for our R package.
--- [commit:6186a04d7939bc84e78209ff3559b643eb614b55]

I wrote R code for the api wrapper functions of weatherstack_current, weatherstack_Lookup and weatherstack_timeSeries. In the functions, I decided to use POST(modify_url(url,query = param_list)) as HTTP method on specified URL with additional parameters because of security. I return the data retrieved from API as organized dataframe, expecially for the weatherstack_timeSeries, as time series dataframe by date and time, to simplify future usage. --- [commit:04b4096c7188a3b4f157bafcf0d4d56e83cfa438]

build package and test the package after Sofia branch merged, fix all bugs. --- [commit:aaccd3da6927cc2533aa89e429adbf6c45299ced]

Jan 31 Add travis, appveyor continuous integration, and code coverage badageg on Readme.rmd. Add unit tests for weatherstack_timeSeries function. travis --- [commit: dd70dcd1c85497b19721721546b2c1ad1fcc0055] appveyor --- [commit: 3b3a2ae3a7495f8add3fe8b93007bc27b7ae90dd] unit test --- [commit: 5e752161daaeda4487801e16f64adf7a3d99825f] Currently having problems with Travis CI, our local R package test passed and all error has been fixed, but travis CI seems not updating those changes, and always failed with no reason.

Feb 3 seek help from professor about our Travis CI. It seems to be cached problem.

Feb 5 Add error handling for the status code, api key not correct. struggling to fix our Travis CI. I Finally make it work by rewriting the travis.yml file delete the cache. --- [commit:d4a22475a15ff8624a1ca566d73bade2721d0b02] finishing up the documentation, github homepage Readme file. fix the package dependency bug introduced by vignette merged, make warning not error. --- [commit:9f824a3fd66df32dbf0fd421aaa86077eb4d1719]

Feb 6 presentation

Feb 9 Recheck everthing in our package. fix code cov badage on github.



Yuening-Li/weatherstack documentation built on Feb. 16, 2020, 5:42 a.m.