1
1
test_that(" basic_epidata_call" , {
2
- expect_no_error(pvt_afhsb(auth = " yourkey" , " fl,ca" , epirange(202001 , 202110 ), " flu1,flu2-flu1" ))
3
2
expect_no_error(pvt_cdc(auth = " yourkey" , " fl,ca" , epirange(201501 , 201601 )))
4
3
expect_no_error(covid_hosp_facility_lookup(state = " fl" ))
5
4
expect_no_error(covid_hosp_facility(hospital_pks = " 100075" , collection_weeks = epirange(20200101 , 20200501 )))
@@ -17,7 +16,6 @@ test_that("basic_epidata_call", {
17
16
expect_no_error(gft(locations = " hhs1" , epiweeks = epirange(201201 , 202001 )))
18
17
expect_no_error(pvt_ght(auth = " yourkey" , locations = " ca" , epiweeks = epirange(201201 , 202001 ), query = " ?" ))
19
18
expect_no_error(kcdc_ili(regions = " ?" , epiweeks = epirange(201201 , 202001 )))
20
- expect_no_error(pvt_meta_afhsb(auth = " yourkey" ))
21
19
expect_no_error(pvt_meta_norostat(auth = " yourkey" ))
22
20
expect_no_error(meta())
23
21
expect_no_error(nidss_dengue(locations = " taipei" , epiweeks = epirange(201201 , 202001 )))
@@ -30,7 +28,6 @@ test_that("basic_epidata_call", {
30
28
expect_no_error(pvt_twitter(auth = " yourkey" , locations = " CA" , epiweeks = epirange(201501 , 202001 )))
31
29
expect_no_error(wiki(articles = " avian_influenza" , epiweeks = epirange(201501 , 202001 )))
32
30
33
- expect_no_error(pvt_afhsb(auth = " yourkey" , " fl,ca" , epirange(202001 , 202110 ), " flu1,flu2-flu1" ) %> % request_url())
34
31
expect_no_error(pvt_cdc(auth = " yourkey" , " fl,ca" , epirange(201501 , 201601 )) %> % request_url())
35
32
expect_no_error(covid_hosp_facility_lookup(state = " fl" ) %> % request_url())
36
33
expect_no_error(covid_hosp_facility(hospital_pks = " 100075" , collection_weeks = epirange(20200101 , 20200501 )) %> % request_url())
@@ -48,7 +45,6 @@ test_that("basic_epidata_call", {
48
45
expect_no_error(gft(locations = " hhs1" , epiweeks = epirange(201201 , 202001 )) %> % request_url())
49
46
expect_no_error(pvt_ght(auth = " yourkey" , locations = " ca" , epiweeks = epirange(201201 , 202001 ), query = " ?" ) %> % request_url())
50
47
expect_no_error(kcdc_ili(regions = " ?" , epiweeks = epirange(201201 , 202001 )) %> % request_url())
51
- expect_no_error(pvt_meta_afhsb(auth = " yourkey" ) %> % request_url())
52
48
expect_no_error(pvt_meta_norostat(auth = " yourkey" ) %> % request_url())
53
49
expect_no_error(meta() %> % request_url())
54
50
expect_no_error(nidss_dengue(locations = " taipei" , epiweeks = epirange(201201 , 202001 )) %> % request_url())
0 commit comments