Browse Source

minor test tweak

tags/v0.5.2
boB Rudis 3 years ago
parent
commit
4e23af80a6
No known key found for this signature in database GPG Key ID: 2A514A4997464560
10 changed files with 5 additions and 8 deletions
  1. +1
    -1
      DESCRIPTION
  2. +2
    -0
      cdcfluview.Rproj
  3. +0
    -1
      man/cdcfluview.Rd
  4. +0
    -1
      man/census_regions.Rd
  5. +0
    -1
      man/get_flu_data.Rd
  6. +0
    -1
      man/get_mortality_surveillance_data.Rd
  7. +0
    -1
      man/get_state_data.Rd
  8. +0
    -1
      man/get_weekly_flu_report.Rd
  9. +0
    -1
      man/hhs_regions.Rd
  10. +2
    -0
      tests/testthat/test-cdcfluview.R

+ 1
- 1
DESCRIPTION View File

@ -30,4 +30,4 @@ Imports:
V8
Depends:
R (>= 3.2.0)
RoxygenNote: 5.0.1
RoxygenNote: 6.0.1

+ 2
- 0
cdcfluview.Rproj View File

@ -20,3 +20,5 @@ PackageInstallArgs: --no-multiarch --with-keep.source
PackageBuildArgs: --resave-data
PackageCheckArgs: --as-cran
PackageRoxygenize: rd,collate,namespace
QuitChildProcessesOnExit: Yes

+ 0
- 1
man/cdcfluview.Rd View File

@ -16,4 +16,3 @@ provides functions to access the data provided by portal's underlying API.
\author{
Bob Rudis (bob@rud.is)
}

+ 0
- 1
man/census_regions.Rd View File

@ -25,4 +25,3 @@ Last updated 2015-08-09.
\url{https://www.cdc.gov/std/stats12/images/CensusMap.png}
}
\keyword{datasets}

+ 0
- 1
man/get_flu_data.Rd View File

@ -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)
}
}

+ 0
- 1
man/get_mortality_surveillance_data.Rd View File

@ -39,4 +39,3 @@ get_mortality_surveillance_data()
\references{
\url{https://www.cdc.gov/flu/weekly/nchs.htm}
}

+ 0
- 1
man/get_state_data.Rd View File

@ -38,4 +38,3 @@ get_state_data(2010:2014)
httr::with_verbose(get_state_data(2009:2015))
}
}

+ 0
- 1
man/get_weekly_flu_report.Rd View File

@ -29,4 +29,3 @@ get_weekly_flu_report()
\references{
\url{https://www.cdc.gov/flu/weekly/flureport.xml}
}

+ 0
- 1
man/hhs_regions.Rd View File

@ -28,4 +28,3 @@ Last updated 2015-08-09.
\url{https://www.hhs.gov/about/agencies/iea/regional-offices/index.html}
}
\keyword{datasets}

+ 2
- 0
tests/testthat/test-cdcfluview.R View File

@ -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)))


Loading…
Cancel
Save