From 812b07c0d604492180cb82f161527fb5f88201a4 Mon Sep 17 00:00:00 2001 From: Bob Rudis Date: Sun, 9 Aug 2015 13:14:00 -0400 Subject: [PATCH] Post-CRAN dev update --- DESCRIPTION | 2 +- README.Rmd | 5 +++++ README.md | 16 ++++++++++------ 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 72ce368..b413205 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: cdcfluview Type: Package Title: Retrieve U.S. Flu Season Data from the CDC FluView Portal -Version: 0.4.0 +Version: 0.4.1.9000 Date: 2015-08-09 Author: Bob Rudis (@hrbrmstr) Maintainer: Bob Rudis diff --git a/README.Rmd b/README.Rmd index 9921ea5..9cd553d 100644 --- a/README.Rmd +++ b/README.Rmd @@ -19,6 +19,8 @@ knitr::opts_chunk$set( ``` ### :mask: cdcfluview - Retrieve U.S. Flu Season Data from the CDC FluView Portal +[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/cdcfluview)](http://cran.r-project.org/web/packages/cdcfluview) + **NOTE** If there's a particular data set from http://www.cdc.gov/flu/weekly/fluviewinteractive.htm that you want and that isn't in the package, please file it as an issue and be as specific as you can (screen shot if possible). ----- @@ -38,6 +40,7 @@ The following data sets are included: ### News +- Version 0.4.0 - [CRAN release](http://cran.r-project.org/web/packages/cdcfluview) - Version 0.4.0.999 released : another fix for the CDC API (for region parameter); added data files for HHS/Census region lookups; added weekly high-level flu report retrieval - Version 0.3 released : fix for the CDC API (it changed how year & region params are encoded in the request) - Version 0.2.1 released : bumped up `httr` version # requirement in `DESCRIPTION` (via Issue [1](https://github.com/hrbrmstr/cdcfluview/issues/1)) @@ -47,6 +50,8 @@ The following data sets are included: ### Installation ```{r eval=FALSE} +install.packages("cdcfluview") +# **OR** devtools::install_github("hrbrmstr/cdcfluview") ``` diff --git a/README.md b/README.md index a812d43..7044206 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ ### :mask: cdcfluview - Retrieve U.S. Flu Season Data from the CDC FluView Portal +[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/cdcfluview)](http://cran.r-project.org/web/packages/cdcfluview) + **NOTE** If there's a particular data set from that you want and that isn't in the package, please file it as an issue and be as specific as you can (screen shot if possible). ------------------------------------------------------------------------ @@ -9,17 +11,17 @@ The U.S. Centers for Disease Control (CDC) maintains a [portal](http://gis.cdc.g The following functions are implemented: - `get_flu_data`: Retrieves state, regional or national influenza statistics from the CDC -- `get_state_data`: Retrieves (high-level) state/territory-level influenza statistics from the CDC -- `get_weekly_flu_report`: Retrieves weekly influenza surveillance report from the CDC +- `get_state_data`: Retrieves state/territory-level influenza statistics from the CDC +- `get_weekly_flu_report`: Retrieves (high-level) weekly influenza surveillance report from the CDC The following data sets are included: - `hhs_regions` HHS Region Table (a data frame with 59 rows and 4 variables) -- `census_regions` Census Region Table (a data frame with 51 rows and 2 variables) - +- `census_regions` Census Region Table (a data frame with 51 rows and 2 variables) ### News +- Version 0.4.0 - [CRAN release](http://cran.r-project.org/web/packages/cdcfluview) - Version 0.4.0.999 released : another fix for the CDC API (for region parameter); added data files for HHS/Census region lookups; added weekly high-level flu report retrieval - Version 0.3 released : fix for the CDC API (it changed how year & region params are encoded in the request) - Version 0.2.1 released : bumped up `httr` version \# requirement in `DESCRIPTION` (via Issue [1](https://github.com/hrbrmstr/cdcfluview/issues/1)) @@ -29,6 +31,8 @@ The following data sets are included: ### Installation ``` r +install.packages("cdcfluview") +# **OR** devtools::install_github("hrbrmstr/cdcfluview") ``` @@ -42,7 +46,7 @@ suppressPackageStartupMessages(library(statebins)) # current verison packageVersion("cdcfluview") -#> [1] '0.4.0.9000' +#> [1] '0.4.1.9000' flu <- get_flu_data("hhs", sub_region=1:10, "ilinet", years=2014) glimpse(flu) @@ -154,7 +158,7 @@ suppressPackageStartupMessages(library(cdcfluview)) suppressPackageStartupMessages(library(testthat)) date() -#> [1] "Sun Aug 9 09:40:34 2015" +#> [1] "Sun Aug 9 13:13:33 2015" test_dir("tests/") #> testthat results ========================================================================================================