11
11
# ' @references API docs: https://cmu-delphi.github.io/delphi-epidata/api/afhsb.html
12
12
# '
13
13
# ' @examples
14
+ # ' \donttest{
14
15
# ' call <- pvt_afhsb(auth = "yourkey", "fl,ca", epirange(202001, 202110), "flu1,flu2-flu1")
15
- # ' # fetch_tbl(call)
16
+ # ' fetch_tbl(call)
17
+ # ' }
16
18
# ' @export
17
19
pvt_afhsb <- function (auth , locations , epiweeks , flu_types ) {
18
20
check_single_string_param(" auth" , auth )
@@ -40,8 +42,10 @@ pvt_afhsb <- function(auth, locations, epiweeks, flu_types) {
40
42
# ' Fetch CDC page hits
41
43
# '
42
44
# ' @examples
45
+ # ' \donttest{
43
46
# ' call <- pvt_cdc(auth = "yourkey", epirange(20210101, 20210201), "fl,ca")
44
- # ' # fetch_tbl(call)
47
+ # ' fetch_tbl(call)
48
+ # ' }
45
49
# ' @param auth Character. Authentication token.
46
50
# ' @param epiweeks Epirange. Epiweeks to fetch in the form epirange(startweek, endweek), where
47
51
# ' startweek and endweek are in the form YYYYWW.
@@ -156,8 +160,10 @@ covid_hosp_facility_lookup <-
156
160
# ' in a variety of ways.
157
161
# '
158
162
# ' @examples
163
+ # ' \donttest{
159
164
# ' call <- covid_hosp_facility(hospital_pks = "100075", collection_weeks = epirange(20200101, 20200501))
160
165
# ' fetch_tbl(call)
166
+ # ' }
161
167
# ' @param hospital_pks Character. A character string of facility unique identifiers.
162
168
# ' @param collection_weeks Epirange. Epiweeks to fetch, in the form epirange(startdate,enddate), where
163
169
# ' startdate and enddate are YYYYMMDD (string or numeric).
@@ -601,8 +607,10 @@ covid_hosp_state_timeseries <-
601
607
# ' @references API Documentation: <https://cmu-delphi.github.io/delphi-epidata/api/covidcast_meta.html>.
602
608
# '
603
609
# ' @examples
610
+ # ' \donttest{
604
611
# ' call_meta <- covidcast_meta()
605
612
# ' fetch_classic(call_meta)
613
+ # ' }
606
614
# '
607
615
# ' @seealso [covidcast()]
608
616
# ' @export
@@ -635,6 +643,7 @@ covidcast_meta <- function() {
635
643
# ' Fetch covidcast data
636
644
# '
637
645
# ' @examples
646
+ # ' \donttest{
638
647
# ' call <- covidcast(
639
648
# ' data_source = "jhu-csse",
640
649
# ' signals = "confirmed_7dav_incidence_prop",
@@ -644,6 +653,7 @@ covidcast_meta <- function() {
644
653
# ' geo_values = "ca,fl"
645
654
# ' )
646
655
# ' fetch_tbl(call)
656
+ # ' }
647
657
# ' @param data_source Character. A data source to query: (1) fb-survey; (2) jhu-csse; (3) google-symptoms;
648
658
# ' (4) doctor-visits; (5) quidel; (6) hhs. For more information about each data source,
649
659
# ' see <https://cmu-delphi.github.io/delphi-epidata/api/covidcast_signals.html>.
@@ -675,7 +685,8 @@ covidcast_meta <- function() {
675
685
# '
676
686
# ' @references COVIDcast API documentation: <https://cmu-delphi.github.io/delphi-epidata/api/covidcast.html>
677
687
# '
678
- # ' Documentation for all COVIDcast sources and signals: <https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals>
688
+ # ' Documentation for all COVIDcast sources and signals:
689
+ # ' <https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals>
679
690
# '
680
691
# ' COVIDcast public dashboard: <https://delphi.cmu.edu/covidcast/>
681
692
# '
@@ -757,16 +768,18 @@ covidcast <-
757
768
758
769
# ' Fetch Delphi's forecast
759
770
# '
760
- # ' API docs: https://cmu-delphi.github.io/delphi-epidata/api/delphi.html
761
- # '
762
771
# ' @examples
772
+ # ' \donttest{
763
773
# ' call <- delphi(system = "ec", epiweek = 202006)
764
774
# ' fetch_classic(call)
775
+ # ' }
765
776
# ' @param system Character. The system name to fetch.
766
777
# ' @param epiweek Epirange. The epiweek to fetch, in the form epirange(startdate,enddate), where startdate
767
778
# ' and enddate are of the form YYYYMMDD (string or numeric).
768
779
# ' @return An instance of epidata_call
769
780
# '
781
+ # ' @references API docs: https://cmu-delphi.github.io/delphi-epidata/api/delphi.html
782
+ # '
770
783
# ' @export
771
784
delphi <- function (system , epiweek ) {
772
785
check_single_string_param(" system" , system )
@@ -786,16 +799,18 @@ delphi <- function(system, epiweek) {
786
799
787
800
# ' Fetch Delphi's PAHO Dengue nowcast
788
801
# '
789
- # ' API docs: https://cmu-delphi.github.io/delphi-epidata/api/dengue_nowcast.html
790
- # '
791
802
# ' TODO: what are valid locations here?
792
803
# ' @examples
804
+ # ' \donttest{
793
805
# ' call <- dengue_nowcast(locations = "?", epiweeks = epirange(201501, 202001))
794
806
# ' fetch_classic(call)
807
+ # ' }
795
808
# ' @param locations Character vector. The locations to fetch.
796
809
# ' @param epiweeks Epirange. The epiweeks to fetch, specified in the form epirange(startdate,enddate), where startdate
797
810
# ' and enddate are of the form YYYYMMDD (string or numeric).
798
- # ' @return an instance of epidata_call
811
+ # ' @return An instance of epidata_call
812
+ # '
813
+ # ' @references API docs: https://cmu-delphi.github.io/delphi-epidata/api/dengue_nowcast.html
799
814
# '
800
815
# ' @export
801
816
dengue_nowcast <- function (locations , epiweeks ) {
@@ -816,18 +831,20 @@ dengue_nowcast <- function(locations, epiweeks) {
816
831
817
832
# ' Fetch Delphi's digital surveillance sensors
818
833
# '
819
- # ' API docs: https://cmu-delphi.github.io/delphi-epidata/api/dengue_sensors.html
820
- # '
821
834
# ' TODO: what are valid locations and names?
822
835
# ' @examples
836
+ # ' \donttest{
823
837
# ' call <- pvt_dengue_sensors(auth = "yourkey", names = "?", locations = "?", epiweeks = epirange(201501, 202001))
824
- # ' # fetch_classic(call)
838
+ # ' fetch_classic(call)
839
+ # ' }
825
840
# ' @param auth Character. Authentication token.
826
841
# ' @param names Character vector. The list of names to fetch.
827
842
# ' @param locations Character vector. The locations to fetch.
828
843
# ' @param epiweeks Epirange. The epiweeks to fetch in the form epirange(startweek,endweek), where startweek
829
844
# ' and endweek are of the form YYYYWW (string or numeric).
830
- # ' @return an instance of epidata_call
845
+ # ' @return An instance of epidata_call
846
+ # '
847
+ # ' @references API docs: https://cmu-delphi.github.io/delphi-epidata/api/dengue_sensors.html
831
848
# '
832
849
# ' @export
833
850
pvt_dengue_sensors <- function (auth , names , locations , epiweeks ) {
@@ -857,11 +874,14 @@ pvt_dengue_sensors <- function(auth, names, locations, epiweeks) {
857
874
# '
858
875
# ' Obtain information on influenza-like-illness from the European Center of Disease Control.
859
876
# '
860
- # ' @details The list of location argument can be found in <https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/ecdc_regions.txt>.
877
+ # ' @details The list of location argument can be found in
878
+ # ' <https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/ecdc_regions.txt>.
861
879
# '
862
880
# ' @examples
881
+ # ' \donttest{
863
882
# ' call <- ecdc_ili(regions = "austria", epiweeks = epirange(201201, 202001))
864
883
# ' fetch_classic(call)
884
+ # ' }
865
885
# ' @param regions Character vector. The regions to fetch.
866
886
# ' @param epiweeks Epirange. The epiweeks to fetch in the form epirange(startdate,enddate), where
867
887
# ' startdate and enddate are of the form YYYYWW (string or numeric).
@@ -908,11 +928,14 @@ ecdc_ili <- function(regions,
908
928
# '
909
929
# ' Obtain information on flu hospitalization rates from the Center of Disease Control.
910
930
# '
911
- # ' @details The list of location argument can be found in <https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/flusurv_locations.txt>.
931
+ # ' @details The list of location argument can be found in
932
+ # ' <https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/flusurv_locations.txt>.
912
933
# '
913
934
# ' @examples
935
+ # ' \donttest{
914
936
# ' call <- flusurv(locations = "CA", epiweeks = epirange(201201, 202001))
915
937
# ' fetch_classic(call)
938
+ # ' }
916
939
# ' @param locations Character vector. Character strings indicating location.
917
940
# ' @param epiweeks Epirange. The epiweeks to fetch the form epirange(startweek,endweek), where startweek
918
941
# ' and endweek are of the form YYYYWW (string or numeric).
@@ -1019,10 +1042,10 @@ fluview_clinical <-
1019
1042
1020
1043
# ' Fetch fluview meta data
1021
1044
# '
1022
- # ' API docs: https://cmu-delphi.github.io/delphi-epidata/api/fluview_meta.html
1023
- # '
1024
1045
# ' @return An instance of epidata_call
1025
1046
# '
1047
+ # ' @references API docs: https://cmu-delphi.github.io/delphi-epidata/api/fluview_meta.html
1048
+ # '
1026
1049
# ' @export
1027
1050
fluview_meta <- function () {
1028
1051
create_epidata_call(
@@ -1146,8 +1169,10 @@ gft <- function(locations, epiweeks) {
1146
1169
# '
1147
1170
# ' TODO: find a non-trivial query
1148
1171
# ' @examples
1172
+ # ' \donttest{
1149
1173
# ' call <- pvt_ght(auth = "yourkey", locations = "ca", epiweeks = epirange(201201, 202001), query = "?")
1150
- # ' # fetch_classic(call)
1174
+ # ' fetch_classic(call)
1175
+ # ' }
1151
1176
# ' @param auth Character. Specifies your authentication token.
1152
1177
# ' @param locations Character vector. Specifies the locations to be fetched.
1153
1178
# ' @param epiweeks Epirange. Specifies the epiweeks to be fetched in the form epirange(startweek,endweek), where startweek
@@ -1183,8 +1208,10 @@ pvt_ght <- function(auth, locations, epiweeks, query) {
1183
1208
# '
1184
1209
# ' TODO: find a non-trivial region
1185
1210
# ' @examples
1211
+ # ' \donttest{
1186
1212
# ' call <- kcdc_ili(regions = "?", epiweeks = epirange(201201, 202001))
1187
1213
# ' fetch_tbl(call)
1214
+ # ' }
1188
1215
# ' @param regions Character vector. Specifies the regions to be fetched.
1189
1216
# ' @param epiweeks Epirange. Specifies the epiweeks to be fetched in the form epirange(startweek,endweek), where
1190
1217
# ' startweek and endweek are of the form YYYYWW (string or numeric).
@@ -1275,8 +1302,10 @@ meta <- function() {
1275
1302
# ' <https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/nidss_locations.txt>.
1276
1303
# '
1277
1304
# ' @examples
1305
+ # ' \donttest{
1278
1306
# ' call <- nidss_dengue(locations = "taipei", epiweeks = epirange(201201, 202001))
1279
1307
# ' fetch_classic(call)
1308
+ # ' }
1280
1309
# ' @param locations Character vector. Specifies the locations of interest. Possible inputs include but are not limited
1281
1310
# ' to (1) nationwide, (2) central, (3) eastern, (4) kaoping, (5) northern, (6) southern, and (7) taipei.
1282
1311
# ' @param epiweeks Eppirange. Specifies the epiweeks to be fetched in the form epirange(startweek,endweek), where
@@ -1307,8 +1336,10 @@ nidss_dengue <- function(locations, epiweeks) {
1307
1336
# ' Obtains information on outpatient inluenza-like-illness from Taiwan National Infectious Disease Statistical System.
1308
1337
# '
1309
1338
# ' @examples
1339
+ # ' \donttest{
1310
1340
# ' call <- nidss_flu(regions = "taipei", epiweeks = epirange(201201, 202001))
1311
1341
# ' fetch_classic(call)
1342
+ # ' }
1312
1343
# ' @param regions Character vector. The regions to fetch.
1313
1344
# ' @param epiweeks Epirange. The epiweeks to fetch in the form epirange(startweek,endweek), where
1314
1345
# ' startweek and endweek are of the form YYYYWW (string or numeric).
@@ -1359,12 +1390,14 @@ nidss_flu <-
1359
1390
# ' Fetch NoroSTAT data (point data, no min/max)
1360
1391
# '
1361
1392
# ' @examples
1393
+ # ' \donttest{
1362
1394
# ' call <- pvt_norostat(
1363
1395
# ' auth = "yourkey",
1364
1396
# ' location = "Minnesota, Ohio, Oregon, Tennessee, and Wisconsin",
1365
1397
# ' epiweeks = epirange(201201, 202001)
1366
1398
# ' )
1367
- # ' # fetch_classic(call)
1399
+ # ' fetch_classic(call)
1400
+ # ' }
1368
1401
# ' @param auth Character. Specifies the authentication key.
1369
1402
# ' @param location Character vector. Specifies the locations of interest.
1370
1403
# ' @param epiweeks Eppirange. Specifies the epiweeks to be fetched in the form epirange(startweek,endweek), where
@@ -1402,8 +1435,10 @@ pvt_norostat <- function(auth, location, epiweeks) {
1402
1435
# ' <https://github.com/cmu-delphi/delphi-epidata/blob/main/src/acquisition/fluview/fluview_locations.py>.
1403
1436
# '
1404
1437
# ' @examples
1438
+ # ' \donttest{
1405
1439
# ' call <- nowcast(location = "ca", epiweeks = epirange(201201, 202001))
1406
1440
# ' fetch_classic(call)
1441
+ # ' }
1407
1442
# ' @param locations Character vector. The locations to be fetched, which can take ID codes in the following
1408
1443
# ' geo types: national, HHS region, census division, most states and territories, and so on.
1409
1444
# ' @param epiweeks Epirange. The epiweeks to fetch in the form epirange(startweek,endweek), where
@@ -1432,8 +1467,10 @@ nowcast <- function(locations, epiweeks) {
1432
1467
# ' Fetch Paho Dengue
1433
1468
# '
1434
1469
# ' @examples
1470
+ # ' \donttest{
1435
1471
# ' call <- paho_dengue(regions = "ca", epiweeks = epirange(201201, 202001))
1436
1472
# ' fetch_classic(call)
1473
+ # ' }
1437
1474
# ' @param regions Character vector. The regions to fetch.
1438
1475
# ' @param epiweeks Epirange. The epiweeks to fetch in the form epirange(startweek,endweek), where
1439
1476
# ' startweek and endweek are of the form YYYYWW (string or numeric).
@@ -1482,8 +1519,10 @@ paho_dengue <- function(regions,
1482
1519
# ' Fetch Quidel data
1483
1520
# '
1484
1521
# ' @examples
1522
+ # ' \donttest{
1485
1523
# ' call <- pvt_quidel(auth = "yourkey", epiweeks = epirange(201201, 202001), locations = "hhs1")
1486
- # ' # fetch_classic(call)
1524
+ # ' fetch_classic(call)
1525
+ # ' }
1487
1526
# ' @param auth Character. The authentication key.
1488
1527
# ' @param epiweeks Epirange. The epiweeks to fetch in the form epirange(startweek,endweek), where
1489
1528
# ' startweek and endweek are of the form YYYYWW (string or numeric).
@@ -1516,8 +1555,10 @@ pvt_quidel <- function(auth, epiweeks, locations) {
1516
1555
# ' Fetch Delphi's digital surveillance sensors
1517
1556
# '
1518
1557
# ' @examples
1558
+ # ' \donttest{
1519
1559
# ' call <- pvt_sensors(auth = "yourkey", names = "sar3", locations = "nat", epiweeks = epirange(201501, 202001))
1520
- # ' # fetch_classic(call)
1560
+ # ' fetch_classic(call)
1561
+ # ' }
1521
1562
# ' @param auth Character. The authentication key.
1522
1563
# ' @param names Character vector. The names of the sensors to fetch.
1523
1564
# ' @param locations Character vector. The locations to fetch.
@@ -1554,8 +1595,10 @@ pvt_sensors <- function(auth, names, locations, epiweeks) {
1554
1595
# ' Fetch HealthTweets data
1555
1596
# '
1556
1597
# ' @examples
1598
+ # ' \donttest{
1557
1599
# ' call <- pvt_twitter(auth = "yourkey", locations = "CA", epiweeks = epirange(201501, 202001))
1558
- # ' # fetch_tbl(call)
1600
+ # ' fetch_tbl(call)
1601
+ # ' }
1559
1602
# ' @param auth Character. The authentication key.
1560
1603
# ' @param locations Character vector. The locations to fetch.
1561
1604
# ' @param dates Epirange. The dates to fetch in the form epirange(startdate,enddate), where
@@ -1605,8 +1648,10 @@ pvt_twitter <-
1605
1648
# ' Fetch Wikipedia access data
1606
1649
# '
1607
1650
# ' @examples
1651
+ # ' \donttest{
1608
1652
# ' call <- wiki(articles = "avian_influenza", epiweeks = epirange(201501, 202001))
1609
1653
# ' fetch_tbl(call)
1654
+ # ' }
1610
1655
# ' @param articles Character vector. The articles to fetch.
1611
1656
# ' @param dates Epirange. The dates to fetch in the form epirange(startdate,enddate), where
1612
1657
# ' startdate and enddate are of the form YYYYMMDD (string or numeric). Mutually exclusive with `epiweeks`.
0 commit comments