Skip to content

Commit

Permalink
Merge pull request #43 from como-ph/dev
Browse files Browse the repository at this point in the history
Github pre-release tasks
  • Loading branch information
ernestguevarra authored Nov 27, 2020
2 parents dc2e028 + 778de36 commit 5ea3b30
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 30 deletions.
6 changes: 6 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@ knitr::opts_chunk$set(
<!-- badges: start -->
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![CRAN status](https://www.r-pkg.org/badges/version/oxcgrt)](https://CRAN.R-project.org/package=oxcgrt)
[![cran checks](https://cranchecks.info/badges/summary/oxcgrt)](https://cran.r-project.org/web/checks/check_results_oxcgrt.html)
[![CRAN](https://img.shields.io/cran/l/oxcgrt.svg)](https://CRAN.R-project.org/package=oxcgrt)
[![CRAN](http://cranlogs.r-pkg.org/badges/oxcgrt)](https://CRAN.R-project.org/package=oxcgrt)
[![CRAN](http://cranlogs.r-pkg.org/badges/grand-total/oxcgrt)](https://CRAN.R-project.org/package=oxcgrt)
[![R build status](https://github.com/como-ph/oxcgrt/workflows/R-CMD-check/badge.svg)](https://github.com/como-ph/oxcgrt/actions)
![test-coverage](https://github.com/como-ph/oxcgrt/workflows/test-coverage/badge.svg)
[![Codecov test coverage](https://codecov.io/gh/como-ph/oxcgrt/branch/master/graph/badge.svg)](https://codecov.io/gh/como-ph/oxcgrt?branch=master)
[![CodeFactor](https://www.codefactor.io/repository/github/como-ph/oxcgrt/badge)](https://www.codefactor.io/repository/github/como-ph/oxcgrt)

<!-- badges: end -->

The [Oxford COVID-19 Government Response Tracker (OxCGRT)](https://www.bsg.ox.ac.uk/research/research-projects/coronavirus-government-response-tracker) tracks and compares worldwide government responses to the COVID-19 pandemic rigorously and consistently. [OxCGRT](https://www.bsg.ox.ac.uk/research/research-projects/coronavirus-government-response-tracker) makes available systematic information in a consistent way, aiding those who require information have access to it efficiently. This package facilitates access to the [OxCGRT](https://www.bsg.ox.ac.uk/research/research-projects/coronavirus-government-response-tracker) data for [R](https://cran.r-project.org) users via version 2 of its API. This package also includes functions to calculate the various [OxCGRT](https://www.bsg.ox.ac.uk/research/research-projects/coronavirus-government-response-tracker) indices in [R](https://cran.r-project.org). This package is aimed at [R](https://cran.r-project.org) users who use or plan to use the [OxCGRT](https://www.bsg.ox.ac.uk/research/research-projects/coronavirus-government-response-tracker) data for their research or for other academic purposes or who develop or want to develop other metrics or indices that build on the [OxCGRT](https://www.bsg.ox.ac.uk/research/research-projects/coronavirus-government-response-tracker) approach.
Expand Down
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,20 @@ state and is being actively
developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![Lifecycle:
experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![CRAN
status](https://www.r-pkg.org/badges/version/oxcgrt)](https://CRAN.R-project.org/package=oxcgrt)
[![cran
checks](https://cranchecks.info/badges/summary/oxcgrt)](https://cran.r-project.org/web/checks/check_results_oxcgrt.html)
[![CRAN](https://img.shields.io/cran/l/oxcgrt.svg)](https://CRAN.R-project.org/package=oxcgrt)
[![CRAN](http://cranlogs.r-pkg.org/badges/oxcgrt)](https://CRAN.R-project.org/package=oxcgrt)
[![CRAN](http://cranlogs.r-pkg.org/badges/grand-total/oxcgrt)](https://CRAN.R-project.org/package=oxcgrt)
[![R build
status](https://github.com/como-ph/oxcgrt/workflows/R-CMD-check/badge.svg)](https://github.com/como-ph/oxcgrt/actions)
![test-coverage](https://github.com/como-ph/oxcgrt/workflows/test-coverage/badge.svg)
[![Codecov test
coverage](https://codecov.io/gh/como-ph/oxcgrt/branch/master/graph/badge.svg)](https://codecov.io/gh/como-ph/oxcgrt?branch=master)
[![CodeFactor](https://www.codefactor.io/repository/github/como-ph/oxcgrt/badge)](https://www.codefactor.io/repository/github/como-ph/oxcgrt)

<!-- badges: end -->

The [Oxford COVID-19 Government Response Tracker
Expand Down Expand Up @@ -117,7 +125,7 @@ get_data_time(query)

This results in the following:

#> # A tibble: 30,638 x 9
#> # A tibble: 31,618 x 9
#> date_value country_code country_name confirmed deaths stringency_actu…
#> <date> <chr> <chr> <int> <int> <dbl>
#> 1 2020-06-01 ABW Aruba 101 3 50
Expand All @@ -130,7 +138,7 @@ This results in the following:
#> 8 2020-06-01 AUS Australia 7195 102 62.0
#> 9 2020-06-01 AUT Austria 16642 668 53.7
#> 10 2020-06-01 AZE Azerbaijan 5494 63 77.8
#> # … with 30,628 more rows, and 3 more variables: stringency <dbl>,
#> # … with 31,608 more rows, and 3 more variables: stringency <dbl>,
#> # stringency_legacy <dbl>, stringency_legacy_disp <dbl>

The `oxcgrt` functions are designed to work with pipe operators via the
Expand All @@ -148,7 +156,7 @@ get_json_time(from = "2020-06-01") %>% ## Step 1: Creat API URL query
This results in the same output as the earlier workflow albeit sorted
alphabetically by country code:

#> # A tibble: 30,638 x 9
#> # A tibble: 31,618 x 9
#> date_value country_code country_name confirmed deaths stringency_actu…
#> <date> <chr> <chr> <int> <int> <dbl>
#> 1 2020-06-01 ABW Aruba 101 3 50
Expand All @@ -161,7 +169,7 @@ alphabetically by country code:
#> 8 2020-06-01 AUS Australia 7195 102 62.0
#> 9 2020-06-01 AUT Austria 16642 668 53.7
#> 10 2020-06-01 AZE Azerbaijan 5494 63 77.8
#> # … with 30,628 more rows, and 3 more variables: stringency <dbl>,
#> # … with 31,608 more rows, and 3 more variables: stringency <dbl>,
#> # stringency_legacy <dbl>, stringency_legacy_disp <dbl>

For more detailed examples of how to retrieve data via the
Expand Down Expand Up @@ -358,7 +366,7 @@ citation("oxcgrt")
#>
#> Ernest Guevarra (2020). oxcgrt: An Interface to the Oxford COVID-19
#> Government Response Tracker API. R package version 0.1.0. URL
#> https://como-ph.github.io/oxcgrt
#> https://como-ph.github.io/oxcgrt/
#>
#> A BibTeX entry for LaTeX users is
#>
Expand All @@ -367,7 +375,7 @@ citation("oxcgrt")
#> author = {Ernest Guevarra},
#> year = {2020},
#> note = {R package version 0.1.0},
#> url = {https://como-ph.github.io/oxcgrt},
#> url = {https://como-ph.github.io/oxcgrt/},
#> }
```

Expand Down
28 changes: 14 additions & 14 deletions docs/articles/retrieve.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5ea3b30

Please sign in to comment.