No known key found for this signature in database
GPG Key ID: 2A514A4997464560
10 changed files with
5 additions and
8 deletions
-
DESCRIPTION
-
cdcfluview.Rproj
-
man/cdcfluview.Rd
-
man/census_regions.Rd
-
man/get_flu_data.Rd
-
man/get_mortality_surveillance_data.Rd
-
man/get_state_data.Rd
-
man/get_weekly_flu_report.Rd
-
man/hhs_regions.Rd
-
tests/testthat/test-cdcfluview.R
|
|
@ -30,4 +30,4 @@ Imports: |
|
|
|
V8 |
|
|
|
Depends: |
|
|
|
R (>= 3.2.0) |
|
|
|
RoxygenNote: 5.0.1 |
|
|
|
RoxygenNote: 6.0.1 |
|
|
|
|
|
@ -20,3 +20,5 @@ PackageInstallArgs: --no-multiarch --with-keep.source |
|
|
|
PackageBuildArgs: --resave-data |
|
|
|
PackageCheckArgs: --as-cran |
|
|
|
PackageRoxygenize: rd,collate,namespace |
|
|
|
|
|
|
|
QuitChildProcessesOnExit: Yes |
|
|
|
|
|
@ -16,4 +16,3 @@ provides functions to access the data provided by portal's underlying API. |
|
|
|
\author{ |
|
|
|
Bob Rudis (bob@rud.is) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -25,4 +25,3 @@ Last updated 2015-08-09. |
|
|
|
\url{https://www.cdc.gov/std/stats12/images/CensusMap.png} |
|
|
|
} |
|
|
|
\keyword{datasets} |
|
|
|
|
|
|
|
|
|
@ -49,4 +49,3 @@ There is often a noticeable delay when making the API request to the CDC. |
|
|
|
flu <- get_flu_data("hhs", 1:10, c("who", "ilinet"), years=2000:2014) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -39,4 +39,3 @@ get_mortality_surveillance_data() |
|
|
|
\references{ |
|
|
|
\url{https://www.cdc.gov/flu/weekly/nchs.htm} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -38,4 +38,3 @@ get_state_data(2010:2014) |
|
|
|
httr::with_verbose(get_state_data(2009:2015)) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -29,4 +29,3 @@ get_weekly_flu_report() |
|
|
|
\references{ |
|
|
|
\url{https://www.cdc.gov/flu/weekly/flureport.xml} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -28,4 +28,3 @@ Last updated 2015-08-09. |
|
|
|
\url{https://www.hhs.gov/about/agencies/iea/regional-offices/index.html} |
|
|
|
} |
|
|
|
\keyword{datasets} |
|
|
|
|
|
|
|
|
|
@ -1,6 +1,8 @@ |
|
|
|
context("basic functionality") |
|
|
|
test_that("we can do something", { |
|
|
|
|
|
|
|
skip_on_cran() |
|
|
|
|
|
|
|
expect_that(dim(get_flu_data("hhs", years=2015)), equals(c(520L, 15L))) |
|
|
|
|
|
|
|
expect_that(dim(get_state_data(2008)), equals(c(2494L, 8L))) |
|
|
|