Skip to content

Commit 0026856

Browse files
authored
Merge pull request #297 from cmu-delphi/use-delphidocs
Use delphidocs
2 parents 0b34808 + a6a4049 commit 0026856

File tree

9 files changed

+86
-66
lines changed

9 files changed

+86
-66
lines changed

.github/workflows/pkgdown.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2727
DELPHI_EPIDATA_KEY: ${{ secrets.SECRET_EPIDATR_GHACTIONS_DELPHI_EPIDATA_KEY }}
2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030

3131
- uses: r-lib/actions/setup-pandoc@v2
3232

@@ -50,9 +50,9 @@ jobs:
5050
run: |
5151
target_ref <- "${{ github.event_name == 'pull_request' && github.base_ref || github.ref }}"
5252
override <- if (target_ref == "main" || target_ref == "refs/heads/main") {
53-
list(development = list(mode = "release", version_label = "light"))
53+
list(development = list(mode = "release"))
5454
} else if (target_ref == "dev" || target_ref == "refs/heads/dev") {
55-
list(development = list(mode = "devel", version_label = "success"))
55+
list(development = list(mode = "devel"))
5656
} else {
5757
stop("Unexpected target_ref: ", target_ref)
5858
}
@@ -65,7 +65,7 @@ jobs:
6565

6666
- name: Deploy to GitHub pages 🚀
6767
if: github.event_name != 'pull_request'
68-
uses: JamesIves/github-pages-deploy-action@v4.4.1
68+
uses: JamesIves/github-pages-deploy-action@v4.5.0
6969
with:
7070
clean: false
7171
branch: gh-pages

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ env
1616
/doc/
1717
/Meta/
1818
.secrets
19-
epidatr.Rproj
2019
renv.lock
2120
renv/
22-
.Rprofile
21+
.Rprofile

DESCRIPTION

+43-28
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,74 @@
1-
Package: epidatr
21
Type: Package
2+
Package: epidatr
33
Title: Client for Delphi's 'Epidata' API
44
Version: 1.2.0
5-
Authors@R:
6-
c(
7-
person("Logan", "Brooks", email = "[email protected]", role = c("aut")),
8-
person("Dmitry", "Shemetov", email = "[email protected]", role = c("aut")),
9-
person("Samuel", "Gratzl", email = "[email protected]", role = c("aut")),
10-
person("David", "Weber", email = "[email protected]", role = c("ctb", "cre")),
11-
person("Nat", "DeFries", role = c("ctb")),
12-
person("Alex", "Reinhart", role = c("ctb")),
13-
person("Daniel", "McDonald", role = c("ctb")),
14-
person("Kean Ming", "Tan", role = c("ctb")),
15-
person("Will", "Townes", role = c("ctb")),
16-
person("George", "Haff", role = c("ctb")),
17-
person("Kathryn", "Mazaitis", role = c("ctb"))
5+
Authors@R: c(
6+
person("Logan", "Brooks", , "[email protected]", role = "aut"),
7+
person("Dmitry", "Shemetov", , "[email protected]", role = "aut"),
8+
person("Samuel", "Gratzl", , "[email protected]", role = "aut"),
9+
person("David", "Weber", , "[email protected]", role = c("ctb", "cre")),
10+
person("Nat", "DeFries", role = "ctb"),
11+
person("Alex", "Reinhart", role = "ctb"),
12+
person("Daniel J.", "McDonald", role = "ctb"),
13+
person("Kean Ming", "Tan", role = "ctb"),
14+
person("Will", "Townes", role = "ctb"),
15+
person("George", "Haff", role = "ctb"),
16+
person("Kathryn", "Mazaitis", role = "ctb")
1817
)
19-
URL: https://cmu-delphi.github.io/epidatr/, https://cmu-delphi.github.io/delphi-epidata/, https://github.com/cmu-delphi/epidatr
20-
BugReports: https://github.com/cmu-delphi/epidatr/issues
21-
Description: The Delphi 'Epidata' API provides real-time access to epidemiological surveillance data for influenza, 'COVID-19', and other diseases for the USA at various geographical resolutions, both from official government sources such as the Center for Disease Control (CDC) and Google Trends and private partners such as Facebook and Change 'Healthcare'. It is built and maintained by the Carnegie Mellon University Delphi research group. To cite this API: David C. Farrow, Logan C. Brooks, Aaron 'Rumack', Ryan J. 'Tibshirani', 'Roni' 'Rosenfeld' (2015). Delphi 'Epidata' API. <https://github.com/cmu-delphi/delphi-epidata>.
22-
Depends: R (>= 3.5.0)
18+
Description: The Delphi 'Epidata' API provides real-time access to
19+
epidemiological surveillance data for influenza, 'COVID-19', and other
20+
diseases for the USA at various geographical resolutions, both from
21+
official government sources such as the Center for Disease Control
22+
(CDC) and Google Trends and private partners such as Facebook and
23+
Change 'Healthcare'. It is built and maintained by the Carnegie Mellon
24+
University Delphi research group. To cite this API: David C. Farrow,
25+
Logan C. Brooks, Aaron 'Rumack', Ryan J. 'Tibshirani', 'Roni'
26+
'Rosenfeld' (2015). Delphi 'Epidata' API.
27+
<https://github.com/cmu-delphi/delphi-epidata>.
2328
License: MIT + file LICENSE
24-
Encoding: UTF-8
25-
LazyData: true
26-
Roxygen: list(markdown = TRUE)
29+
URL: https://cmu-delphi.github.io/epidatr/,
30+
https://cmu-delphi.github.io/delphi-epidata/,
31+
https://github.com/cmu-delphi/epidatr
32+
BugReports: https://github.com/cmu-delphi/epidatr/issues
33+
Depends:
34+
R (>= 3.5.0)
2735
Imports:
2836
cachem,
2937
checkmate,
3038
cli,
31-
httr,
3239
glue,
40+
httr,
3341
jsonlite,
3442
magrittr,
3543
MMWRweek,
36-
purrr,
3744
openssl,
45+
purrr,
3846
rappdirs,
3947
readr,
4048
tibble,
4149
usethis,
4250
xml2
43-
RoxygenNote: 7.3.2
4451
Suggests:
4552
dplyr,
4653
ggplot2,
4754
knitr,
48-
maps,
4955
mapproj,
50-
rmarkdown,
56+
maps,
5157
rlang,
58+
rmarkdown,
5259
testthat (>= 3.1.5),
5360
withr
54-
VignetteBuilder: knitr
55-
Language: en-US
61+
VignetteBuilder:
62+
knitr
63+
Remotes:
64+
cmu-delphi/delphidocs
65+
Config/Needs/website: cmu-delphi/delphidocs
5666
Config/testthat/edition: 3
67+
Encoding: UTF-8
68+
Language: en-US
69+
LazyData: true
70+
Roxygen: list(markdown = TRUE)
71+
RoxygenNote: 7.3.2
5772
Collate:
5873
'auth.R'
5974
'avail_endpoints.R'

README.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The [Delphi Epidata API](https://cmu-delphi.github.io/delphi-epidata/) provides
2525
real-time access to epidemiological surveillance data for influenza, COVID-19,
2626
and other diseases from both official government sources such as the [Centers
2727
for Disease Control and Prevention
28-
(CDC)](https://www.cdc.gov/datastatistics/index.html), private partners such as
28+
(CDC)](https://www.cdc.gov/), private partners such as
2929
[Facebook (now
3030
Meta)](https://delphi.cmu.edu/blog/2020/08/26/covid-19-symptom-surveys-through-facebook/)
3131
and [Change Healthcare](https://www.changehealthcare.com/), and other public
@@ -79,7 +79,7 @@ pak::pkg_install("epidatr")
7979
pak::pkg_install("cmu-delphi/epidatr@dev")
8080
```
8181

82-
Our CRAN listing is [here](https://cran.r-project.org/web/packages/epidatr/index.html).
82+
Our CRAN listing is [here](https://CRAN.R-project.org/package=epidatr/index.html).
8383

8484
### API Keys
8585

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ The [Delphi Epidata API](https://cmu-delphi.github.io/delphi-epidata/)
1616
provides real-time access to epidemiological surveillance data for
1717
influenza, COVID-19, and other diseases from both official government
1818
sources such as the [Centers for Disease Control and Prevention
19-
(CDC)](https://archive.cdc.gov/), private partners
20-
such as [Facebook (now
19+
(CDC)](https://www.cdc.gov/), private partners such as [Facebook (now
2120
Meta)](https://delphi.cmu.edu/blog/2020/08/26/covid-19-symptom-surveys-through-facebook/)
2221
and [Change Healthcare](https://www.changehealthcare.com/), and other
2322
public datasets like [Google
@@ -82,7 +81,7 @@ pak::pkg_install("cmu-delphi/epidatr@dev")
8281
```
8382

8483
Our CRAN listing is
85-
[here](https://CRAN.R-project.org/package=epidatr).
84+
[here](https://CRAN.R-project.org/package=epidatr/index.html).
8685

8786
### API Keys
8887

_pkgdown.yml

+12-26
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,30 @@
1-
# Colors should stay consistent across epipredict, epiprocess, and epidatr,
2-
# using Carnegie Red
3-
# https://www.cmu.edu/brand/brand-guidelines/visual-identity/colors.html
4-
51
# This is to give a default value to the `mode` parameter in the
62
# `pkgdown::build_site` function. This is useful when building the site locally,
73
# as it will default to `devel` mode. In practice, this should all be handled
84
# dynamically by the CI/CD pipeline.
95
development:
106
mode: devel
11-
version_label: success
127

138
template:
14-
bootstrap: 5
15-
bootswatch: cosmo
16-
bslib:
17-
font_scale: 1.0
18-
primary: "#C41230"
19-
success: "#B4D43C"
20-
link-color: "#C41230"
21-
22-
navbar:
23-
bg: primary
24-
type: light
9+
package: delphidocs
2510

2611
url: https://cmu-delphi.github.io/epidatr/
2712

2813
home:
2914
links:
3015
- text: Get the Python client
3116
href: https://github.com/cmu-delphi/epidatpy/
32-
- text: View the Delphi Website
33-
href: https://delphi.cmu.edu/
34-
- text: Introduction to Delphi's Tooling Work
35-
href: https://cmu-delphi.github.io/delphi-tooling-book/
36-
- text: The epiprocess R package
37-
href: https://cmu-delphi.github.io/epiprocess/
38-
- text: The epipredict R package
39-
href: https://cmu-delphi.github.io/epipredict/
40-
- text: The epidatasets R package
41-
href: https://cmu-delphi.github.io/epidatasets/
17+
sidebar:
18+
structure: [links, license, community, citation, authors, related, dev]
19+
components:
20+
related:
21+
title: Delphi packages and resources
22+
text: |
23+
* [The epiprocess R package](https://cmu-delphi.github.io/epiprocess/)
24+
* [The epipredict R package](https://cmu-delphi.github.io/epipredict/)
25+
* [The epidatasets R package](https://cmu-delphi.github.io/epidatasets/)
26+
* [Introduction to Delphi's Tooling Work](https://cmu-delphi.github.io/delphi-tooling-book/)
27+
4228
4329
reference:
4430
- title: Data source and signal discovery

epidatr.Rproj

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Version: 1.0
2+
3+
RestoreWorkspace: Default
4+
SaveWorkspace: Default
5+
AlwaysSaveHistory: Default
6+
7+
EnableCodeIndexing: Yes
8+
UseSpacesForTab: Yes
9+
NumSpacesForTab: 2
10+
Encoding: UTF-8
11+
12+
RnwWeave: Sweave
13+
LaTeX: pdfLaTeX
14+
15+
AutoAppendNewline: Yes
16+
StripTrailingWhitespace: Yes
17+
18+
BuildType: Package
19+
PackageUseDevtools: Yes
20+
PackageInstallArgs: --no-multiarch --with-keep.source

man/epidatr-package.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test-request.R

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
test_that("requesting works", {
2+
skip("This site is down.")
23
res <- do_request("https://httpbin.org/status/414", list(), timeout_seconds = 10 * 60)
34
expect_equal(res$status_code, 414)
45
})

0 commit comments

Comments
 (0)