Skip to content

Commit 9468165

Browse files
committed
Update email address and paper citations
1 parent 92d4521 commit 9468165

File tree

10 files changed

+149
-195
lines changed

10 files changed

+149
-195
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 21 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
2-
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5-
branches:
6-
- main
7-
- master
5+
branches: [main, master]
86
pull_request:
9-
branches:
10-
- main
11-
- master
7+
branches: [main, master]
128

139
name: R-CMD-check
1410

@@ -22,64 +18,32 @@ jobs:
2218
fail-fast: false
2319
matrix:
2420
config:
25-
- {os: macOS-latest, r: 'release'}
26-
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
27-
- {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
21+
- {os: windows-latest, r: 'release'}
22+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
23+
- {os: ubuntu-latest, r: 'release'}
24+
- {os: ubuntu-latest, r: 'oldrel-1'}
2825

2926
env:
30-
_R_CHECK_FORCE_SUGGESTS_: false
31-
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
32-
RSPM: ${{ matrix.config.rspm }}
3327
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
28+
R_KEEP_PKG_SOURCE: yes
3429

3530
steps:
36-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v3
3732

38-
- uses: r-lib/actions/setup-r@v1
33+
- uses: r-lib/actions/setup-pandoc@v2
34+
35+
- uses: r-lib/actions/setup-r@v2
3936
with:
4037
r-version: ${{ matrix.config.r }}
38+
http-user-agent: ${{ matrix.config.http-user-agent }}
39+
use-public-rspm: true
4140

42-
- uses: r-lib/actions/setup-pandoc@v1
43-
44-
- name: Query dependencies
45-
run: |
46-
install.packages('remotes')
47-
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
48-
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
49-
shell: Rscript {0}
50-
51-
- name: Restore R package cache
52-
if: runner.os != 'Windows'
53-
uses: actions/cache@v2
41+
- uses: r-lib/actions/setup-r-dependencies@v2
5442
with:
55-
path: ${{ env.R_LIBS_USER }}
56-
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
57-
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
58-
59-
- name: Install system dependencies
60-
if: runner.os == 'Linux'
61-
run: |
62-
while read -r cmd
63-
do
64-
eval sudo $cmd
65-
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
66-
- name: Install dependencies
67-
run: |
68-
remotes::install_deps(dependencies = TRUE)
69-
remotes::install_cran("rcmdcheck")
70-
shell: Rscript {0}
71-
72-
- name: Check
73-
env:
74-
_R_CHECK_CRAN_INCOMING_REMOTE_: false
75-
run: |
76-
options(crayon.enabled = TRUE)
77-
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "error", check_dir = "check")
78-
shell: Rscript {0}
43+
dependencies: '"hard"'
44+
extra-packages: any::rcmdcheck, any::covr, any::testthat
45+
needs: check
7946

80-
- name: Upload check results
81-
if: failure()
82-
uses: actions/upload-artifact@main
47+
- uses: r-lib/actions/check-r-package@v2
8348
with:
84-
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
85-
path: check
49+
upload-snapshots: true

.github/workflows/test-coverage.yaml

Lines changed: 0 additions & 48 deletions
This file was deleted.

DESCRIPTION

Lines changed: 46 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,46 @@
1-
Package: natstrat
2-
Type: Package
3-
Title: Obtain Unweighted Natural Strata that Balance Many Covariates
4-
Version: 2.0.0
5-
Authors@R: c(
6-
person("Katherine", "Brumberg", email = "kbrum@wharton.upenn.edu",
7-
role=c("aut", "cre")))
8-
Description: Natural strata can be used in observational studies to balance
9-
the distributions of many covariates across any number of treatment
10-
groups and any number of comparisons. These strata have proportional
11-
amounts of units within each stratum across the treatments, allowing
12-
for simple interpretation and aggregation across strata. Within each
13-
stratum, the units are chosen using randomized rounding of a linear
14-
program that balances many covariates.
15-
To solve the linear program, the 'Gurobi' commercial optimization software
16-
is recommended, but not required. The 'gurobi' R package can be installed following the instructions
17-
at <https://www.gurobi.com/documentation/9.1/refman/ins_the_r_package.html>.
18-
URL: https://github.com/kkbrum/natstrat, https://kkbrum.github.io/natstrat/, https://www.gurobi.com/documentation/9.1/refman/ins_the_r_package.html
19-
BugReports: https://github.com/kkbrum/natstrat/issues
20-
License: GPL-3
21-
Encoding: UTF-8
22-
LazyData: true
23-
RoxygenNote: 7.1.1
24-
Imports:
25-
Rglpk,
26-
stats,
27-
plyr,
28-
pps,
29-
sampling,
30-
ggplot2,
31-
rlang,
32-
ramify,
33-
slam
34-
Depends:
35-
R (>= 2.10),
36-
caret
37-
Suggests:
38-
knitr,
39-
rmarkdown,
40-
markdown,
41-
testthat (>= 3.0.0),
42-
DT,
43-
stringr,
44-
covr,
45-
gurobi
46-
VignetteBuilder: knitr
47-
Config/testthat/edition: 3
1+
Package: natstrat
2+
Type: Package
3+
Title: Obtain Unweighted Natural Strata that Balance Many Covariates
4+
Version: 2.0.1
5+
Authors@R: c(
6+
person("Katherine", "Brumberg", email = "kbrum@umich.edu",
7+
role=c("aut", "cre")))
8+
Description: Natural strata can be used in observational studies to balance
9+
the distributions of many covariates across any number of treatment
10+
groups and any number of comparisons. These strata have proportional
11+
amounts of units within each stratum across the treatments, allowing
12+
for simple interpretation and aggregation across strata. Within each
13+
stratum, the units are chosen using randomized rounding of a linear
14+
program that balances many covariates. For more details, see Brumberg et al. (2022) <https://doi.org/10.1111/rssa.12848> and Brumberg et al.(2023) <https://doi.org/10.1093/jrsssc/qlad010>.
15+
To solve the linear program, the 'Gurobi' commercial optimization software
16+
is recommended, but not required. The 'gurobi' R package can be installed by following the instructions at <https://docs.gurobi.com/projects/optimizer/en/current/reference/r/setup.html> after claiming your free academic license at <https://www.gurobi.com/academia/academic-program-and-licenses/>.
17+
URL: https://github.com/kkbrum/natstrat, https://kkbrum.github.io/natstrat/, https://docs.gurobi.com/projects/optimizer/en/current/reference/r/setup.html
18+
BugReports: https://github.com/kkbrum/natstrat/issues
19+
License: GPL-3
20+
Encoding: UTF-8
21+
LazyData: true
22+
RoxygenNote: 7.3.1
23+
Imports:
24+
Rglpk,
25+
stats,
26+
plyr,
27+
pps,
28+
sampling,
29+
ggplot2,
30+
rlang,
31+
ramify,
32+
slam
33+
Depends:
34+
R (>= 2.10),
35+
caret
36+
Suggests:
37+
knitr,
38+
rmarkdown,
39+
markdown,
40+
testthat (>= 3.0.0),
41+
DT,
42+
stringr,
43+
covr,
44+
gurobi
45+
VignetteBuilder: knitr
46+
Config/testthat/edition: 3

NEWS.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# natstrat 2.0.0 (2026-02-03)
2+
3+
This patch updates the maintainer's email address and adds paper citations.
4+
15
# natstrat 2.0.0 (2021-10-12)
26

37
This version adds several new functionalities:
@@ -25,8 +29,6 @@ outputted by `check_balance` instead
2529
* `generate_constraints` now returns only standardized outputs, not centered. The centering
2630
now takes place within `optimize_controls` instead
2731

28-
29-
3032
# natstrat 1.0.0 (2021-05-17)
3133

3234
The first released version.

README.Rmd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ knitr::opts_chunk$set(
1717

1818
<!-- badges: start -->
1919
[![R-CMD-check](https://github.com/kkbrum/natstrat/workflows/R-CMD-check/badge.svg)](https://github.com/kkbrum/natstrat/actions)
20-
[![Codecov test coverage](https://codecov.io/gh/kkbrum/natstrat/branch/master/graph/badge.svg)](https://app.codecov.io/gh/kkbrum/natstrat?branch=master)
2120
<!-- badges: end -->
2221

2322
Natural strata can be used in observational studies to balance

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
<!-- badges: start -->
77

88
[![R-CMD-check](https://github.com/kkbrum/natstrat/workflows/R-CMD-check/badge.svg)](https://github.com/kkbrum/natstrat/actions)
9-
[![Codecov test
10-
coverage](https://codecov.io/gh/kkbrum/natstrat/branch/master/graph/badge.svg)](https://app.codecov.io/gh/kkbrum/natstrat?branch=master)
119
<!-- badges: end -->
1210

1311
Natural strata can be used in observational studies to balance the

cran-comments.md

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
## Updated package
2-
This is an update to an existing package. In this major version I have added
3-
additional functionality, which is almost entirely backwards compatible.
2+
This is a patch to update my email address. All other changes are just to get checks/tests running smoothly.
43

54
## Test environments
6-
* local windows install, R 4.0.3
7-
* local windows install, R 4.1.1
8-
* ubuntu-20.04 release (on github actions)
9-
* ubuntu-20.04 devel (on github actions)
10-
* macOS-latest release (on github actions)
11-
* win-builder (devel and release)
5+
* local macOS install, R 4.2.2
6+
- macOS builder
7+
- win-builder (devel and release)
8+
- github actions:
9+
- {os: windows-latest, r: 'release'}
10+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
11+
- {os: ubuntu-latest, r: 'release'}
12+
- {os: ubuntu-latest, r: 'oldrel-1'}
1213

1314
## R CMD check results
14-
There were no ERRORs or WARNINGs on release or devel.
15-
16-
Only in my local windows install, using version 4.0.3 of R,
17-
there is 1 WARNING:
18-
Warning: package 'ggplot2' was built under R version 4.0.5
19-
As my package does not rely heavily on ggplot2, there should not be any issues
20-
with users using my package with earlier versions of R. There do not seem
21-
to have been any ggplot2 changes that affect my package.
15+
There were no ERRORs or WARNINGs.
2216

2317
There were the following NOTEs:
2418

inst/CITATION

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
citHeader("To cite natstrat in publications use:")
2+
3+
bibentry(bibtype = "Manual",
4+
title = "natstrat: Obtain Unweighted Natural Strata that Balance Many Covariates",
5+
author = person("Katherine", "Brumberg"),
6+
year = 2024,
7+
note = paste("R package version", packageVersion("natstrat")),
8+
url = "https://github.com/kkbrum/natstrat",
9+
textVersion = paste("Brumberg, K. (2024). natstrat: Obtain Unweighted Natural Strata that Balance Many Covariates. R package version", packageVersion("natstrat"), ". https://github.com/kkbrum/natstrat")
10+
)
11+
12+
bibentry(bibtype = "Article",
13+
title = "Using Randomized Rounding of Linear Programs to Obtain Unweighted Natural Strata that Balance Many Covariates",
14+
author = c(
15+
person("Katherine", "Brumberg"),
16+
person("Dylan", "S", "Small"),
17+
person("Paul", "R", "Rosenbaum")
18+
),
19+
journal = "Journal of the Royal Statistical Society Series A: Statistics in Society",
20+
year = 2022,
21+
volume = 185,
22+
number = 4,
23+
pages = "1931-1951",
24+
doi = "10.1111/rssa.12848",
25+
url = "https://doi.org/10.1111/rssa.12848",
26+
textVersion = "Brumberg, K., Small, D. S., & Rosenbaum, P. R. (2022). Using Randomized Rounding of Linear Programs to Obtain Unweighted Natural Strata that Balance Many Covariates. Journal of the Royal Statistical Society Series A: Statistics in Society, 185(4), 1931-1951. https://doi.org/10.1111/rssa.12848"
27+
)
28+
29+
bibentry(bibtype = "Article",
30+
title = "Using natural strata when examining unmeasured biases in an observational study of neurological side effects of antibiotics",
31+
author = c(
32+
person("Katherine", "Brumberg"),
33+
person("Darcy", "E", "Ellis"),
34+
person("Dylan", "S", "Small"),
35+
person("Sean", "Hennessy"),
36+
person("Paul", "R", "Rosenbaum")
37+
),
38+
journal = "Journal of the Royal Statistical Society Series C: Applied Statistics",
39+
year = 2023,
40+
volume = 72,
41+
number = 2,
42+
pages = "314-329",
43+
doi = "10.1093/jrsssc/qlad010",
44+
url = "https://doi.org/10.1093/jrsssc/qlad010",
45+
textVersion = "Brumberg, K., Ellis, D. E., Small, D. S., Hennessy, S., & Rosenbaum, P. R. (2023). Using natural strata when examining unmeasured biases in an observational study of neurological side effects of antibiotics. Journal of the Royal Statistical Society Series C: Applied Statistics, 72(2), 314-329. https://doi.org/10.1093/jrsssc/qlad010"
46+
)

man/natstrat-package.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)