Skip to content

Commit e9793f5

Browse files
committed
prep for 1.2.3
1 parent 328c7d0 commit e9793f5

File tree

8 files changed

+71
-59
lines changed

8 files changed

+71
-59
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: REDCapTidieR
22
Type: Package
33
Title: Extract 'REDCap' Databases into Tidy 'Tibble's
4-
Version: 1.2.2.9000
4+
Version: 1.2.3
55
Authors@R: c(
66
person("Richard", "Hanna", , "hannar1@chop.edu", role = c("aut", "cre"),
77
comment = c(ORCID = "0009-0005-6496-8154")),

NEWS.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# REDCapTidieR (development version)
1+
# REDCapTidieR 1.2.3
2+
3+
- Fixed a bug causing `read_redcap()` to incorrectly report categorical variables with data values that don't match any options in the metadata.
4+
- Fixed a bug causing `read_redcap()` to fail with an unhelpful error when attempting to export DAG information for a user with insufficient DAG export privileges.
25

36
# REDCapTidieR 1.2.2
47

R/write.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ add_labelled_xlsx_features <- function(supertbl,
230230
supertbl_toc = NULL) {
231231
check_installed("labelled", reason = "to make use of labelled features in `write_redcap_xlsx`")
232232
# Generate variable labels off of labelled dictionary objects ----
233-
generate_dictionaries <- function(x) { #nolint: object_usage_linter
233+
generate_dictionaries <- function(x) { # nolint: object_usage_linter
234234
labelled::generate_dictionary(x) %>%
235235
select("variable", "label") %>%
236236
mutate(label = if_else(is.na(.data$label), "", .data$label)) %>%
@@ -284,7 +284,7 @@ add_labelled_xlsx_features <- function(supertbl,
284284
}
285285

286286
# Define redcap_data variable labels
287-
var_labels <- map(.x = supertbl$redcap_data, ~generate_dictionaries(.x))
287+
var_labels <- map(.x = supertbl$redcap_data, ~ generate_dictionaries(.x))
288288

289289
for (i in seq_along(supertbl$redcap_form_name)) {
290290
wb$add_data(

cran-comments.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,24 @@
22

33
Thank you for taking the time to review this submission and please reach out to either Stephan Kadauke, Richard Hanna, or Ezra Porter for any questions, comments, or concerns.
44

5-
This submission for v1.2.2 patches two minor bugs related to data access group handling and labels.
5+
This submission for v1.2.3 patches two minor bugs related to the clarity of error and warning messages.
66

77
## Test environments
88

9-
1. Local macOS Sequoia 15.2, R 4.4.2
9+
1. Local macOS Sequoia 15.2, R 4.4.0
1010
2. R-hub
11-
1. [Ubuntu 24.04.2 LTS, R-next, GCC](https://github.com/CHOP-CGTInformatics/REDCapTidieR/actions/runs/13978387947/job/39137770004)
12-
2. [Ubuntu 24.04.2 LTS, R-release, GCC](https://github.com/CHOP-CGTInformatics/REDCapTidieR/actions/runs/13978387947/job/39137769994)
13-
3. [Ubuntu 24.04.2 LTS, R-devel, GCC](https://github.com/CHOP-CGTInformatics/REDCapTidieR/actions/runs/13978387947/job/39137770007)
14-
4. [Microsoft Windows Server 2022, 10.0.20348](https://github.com/CHOP-CGTInformatics/REDCapTidieR/actions/runs/13978387947/job/39137769995)
15-
3. [win-builder](https://win-builder.r-project.org/8BK3zt6ki2a4/00check.log), development version.
11+
1. [Ubuntu 24.04.2 LTS, R-next, GCC](https://github.com/CHOP-CGTInformatics/REDCapTidieR/actions/runs/15351802286/job/43201633589)
12+
2. [Ubuntu 24.04.2 LTS, R-release, GCC](https://github.com/CHOP-CGTInformatics/REDCapTidieR/actions/runs/15351802286/job/43201633580)
13+
3. [Ubuntu 24.04.2 LTS, R-devel, GCC](https://github.com/CHOP-CGTInformatics/REDCapTidieR/actions/runs/15351802286/job/43201633593)
14+
4. [Microsoft Windows Server 2022, 10.0.20348](https://github.com/CHOP-CGTInformatics/REDCapTidieR/actions/runs/15351802286/job/43201633585)
15+
3. [win-builder](https://win-builder.r-project.org/sXA2nedLAHgM/00check.log), development version.
1616
4. [GiHub Actions](https://github.com/CHOP-CGTInformatics/REDCapTidieR/actions), Ubuntu 20.04.05 LTS
1717

1818
## R CMD check results:
1919

20-
- 0 ERRORs or WARNINGs or NOTES on any builds
20+
- 0 ERRORs or WARNINGs on any builds
21+
- `win-builder` contained one expected NOTE related to the email address for the `win-builder` submission varying from the package maintainer
2122

2223
## Downstream Dependencies:
2324

24-
All packages that depend/import/suggest REDCapTidieR pass the [Reverse dependency checks](https://github.com/CHOP-CGTInformatics/REDCapTidieR/actions/runs/13978391243).
25+
All packages that depend/import/suggest REDCapTidieR pass the [Reverse dependency checks](https://github.com/CHOP-CGTInformatics/REDCapTidieR/actions/runs/15351817999).

utility/cli_message_examples_reprex.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ withr::with_tempdir({
255255
})
256256
#> Error:
257257
#> ✖ File
258-
#> ''/private/var/folders/9c/k1m0bzys7gb1v32g86hfn5sn5k86h1/T/RtmpQCmzPP/file1411b189a9c52/temp.csv''
258+
#> ''/private/var/folders/9c/k1m0bzys7gb1v32g86hfn5sn5k86h1/T/Rtmpj47vZR/file1866d316efdeb/temp.csv''
259259
#> already exists.
260260
#> ℹ Overwriting files is disabled by default. Set `overwrite = TRUE` to overwrite
261261
#> existing file.
@@ -296,7 +296,7 @@ withr::with_tempdir({
296296
write_redcap_xlsx(file = filepath)
297297
})
298298
#> Warning in write_redcap_xlsx(., file = filepath): ! No extension provided for `file`:
299-
#> '/private/var/folders/9c/k1m0bzys7gb1v32g86hfn5sn5k86h1/T/RtmpQCmzPP/file1411b1319086f/temp'
299+
#> '/private/var/folders/9c/k1m0bzys7gb1v32g86hfn5sn5k86h1/T/Rtmpj47vZR/file1866d20d182be/temp'
300300
#> ℹ The extension '.xlsx' will be appended to the file name.
301301

302302
# Printed supertibble

utility/microbenchmark_results.csv

Lines changed: 40 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,41 @@
11
min,lq,mean,median,uq,max,neval,description,source
2-
0.96,0.96,0.96,0.96,0.96,0.96,1,simple static (read-only) test project,ouhsc
3-
2.35,2.35,2.35,2.35,2.35,2.35,1,longitudinal (read-only) ARM test project,ouhsc
4-
0.99,0.99,0.99,0.99,0.99,0.99,1,simple write data,ouhsc
5-
4.29,4.29,4.29,4.29,4.29,4.29,1,Russian Characters,ouhsc
6-
6.67,6.67,6.67,6.67,6.67,6.67,1,"super-wide --3,000 columns",ouhsc
7-
1.72,1.72,1.72,1.72,1.72,1.72,1,static (not longitudinal) survey test project,ouhsc
8-
1.43,1.43,1.43,1.43,1.43,1.43,1,"Clinical Trial (Fake) --Read-only, contributed by @higgi13425",ouhsc
9-
1.12,1.12,1.12,1.12,1.12,1.12,1,nonnumeric record_id,ouhsc
10-
0.97,0.97,0.97,0.97,0.97,0.97,1,DAG Read,ouhsc
11-
0.9,0.9,0.9,0.9,0.9,0.9,1,potentially problematic values,ouhsc
12-
1.13,1.13,1.13,1.13,1.13,1.13,1,simple write metadata,ouhsc
13-
0.89,0.89,0.89,0.89,0.89,0.89,1,DAG Write -admin,ouhsc
14-
0.95,0.95,0.95,0.95,0.95,0.95,1,DAG Write -group A,ouhsc
15-
1278.89,1278.89,1278.89,1278.89,1278.89,1278.89,1,"super-wide #3--35,000 columns",ouhsc
16-
0.99,0.99,0.99,0.99,0.99,0.99,1,Repeating Instruments --Sparse,ouhsc
17-
1.1,1.1,1.1,1.1,1.1,1.1,1,Delete Single Arm,ouhsc
18-
2.35,2.35,2.35,2.35,2.35,2.35,1,Delete Multiple Arm,ouhsc
19-
2.13,2.13,2.13,2.13,2.13,2.13,1,longitudinal single arm,ouhsc
20-
1.25,1.25,1.25,1.25,1.25,1.25,1,decimal comma and dot,ouhsc
21-
1.32,1.32,1.32,1.32,1.32,1.32,1,decimal comma,ouhsc
22-
1.09,1.09,1.09,1.09,1.09,1.09,1,decimal dot,ouhsc
23-
1.21,1.21,1.21,1.21,1.21,1.21,1,Validation Types,ouhsc
24-
0.99,0.99,0.99,0.99,0.99,0.99,1,Blank for Gray Status,ouhsc
25-
1.32,1.32,1.32,1.32,1.32,1.32,1,Checkboxes 1,ouhsc
26-
1.13,1.13,1.13,1.13,1.13,1.13,1,Vignette: Longitudinal & Repeating Measures,ouhsc
27-
3.01,3.01,3.01,3.01,3.01,3.01,1,classic,redcaptidier
28-
3.34,3.34,3.34,3.34,3.34,3.34,1,classic no repeat,redcaptidier
29-
3.1,3.1,3.1,3.1,3.1,3.1,1,longitudinal,redcaptidier
30-
2.88,2.88,2.88,2.88,2.88,2.88,1,longitudinal no arms,redcaptidier
31-
3.5,3.5,3.5,3.5,3.5,3.5,1,longitudinal no repeat,redcaptidier
32-
5.16,5.16,5.16,5.16,5.16,5.16,1,deep dive vignette,redcaptidier
33-
2.8,2.8,2.8,2.8,2.8,2.8,1,repeat first instrument,redcaptidier
34-
4.69,4.69,4.69,4.69,4.69,4.69,1,repeat event,redcaptidier
35-
2.42,2.42,2.42,2.42,2.42,2.42,1,restricted access,redcaptidier
36-
1.99,1.99,1.99,1.99,1.99,1.99,1,large sparse db,redcaptidier
37-
1.63,1.63,1.63,1.63,1.63,1.63,1,data access groups,redcaptidier
38-
3.62,3.62,3.62,3.62,3.62,3.62,1,longitudinal data access groups,redcaptidier
39-
3.16,3.16,3.16,3.16,3.16,3.16,1,mixed structure repeat no repeat,redcaptidier
40-
11.29,11.29,11.29,11.29,11.29,11.29,1,prodigy db,redcaptidier
41-
15.8,15.8,15.8,15.8,15.8,15.8,1,cart comprehensive db,redcaptidier
42-
34.07,34.07,34.07,34.07,34.07,34.07,1,bmt outcomes db,redcaptidier
2+
1.34,1.34,1.34,1.34,1.34,1.34,1,simple static (read-only) test project,ouhsc
3+
1.89,1.89,1.89,1.89,1.89,1.89,1,longitudinal (read-only) ARM test project,ouhsc
4+
0.73,0.73,0.73,0.73,0.73,0.73,1,simple write data,ouhsc
5+
2.38,2.38,2.38,2.38,2.38,2.38,1,Russian Characters,ouhsc
6+
4.63,4.63,4.63,4.63,4.63,4.63,1,"super-wide --3,000 columns",ouhsc
7+
1.12,1.12,1.12,1.12,1.12,1.12,1,static (not longitudinal) survey test project,ouhsc
8+
0.98,0.98,0.98,0.98,0.98,0.98,1,"Clinical Trial (Fake) --Read-only, contributed by @higgi13425",ouhsc
9+
0.88,0.88,0.88,0.88,0.88,0.88,1,nonnumeric record_id,ouhsc
10+
0.98,0.98,0.98,0.98,0.98,0.98,1,DAG Read,ouhsc
11+
0.91,0.91,0.91,0.91,0.91,0.91,1,potentially problematic values,ouhsc
12+
0.97,0.97,0.97,0.97,0.97,0.97,1,simple write metadata,ouhsc
13+
0.94,0.94,0.94,0.94,0.94,0.94,1,DAG Write -admin,ouhsc
14+
0.66,0.66,0.66,0.66,0.66,0.66,1,DAG Write -group A,ouhsc
15+
149.66,149.66,149.66,149.66,149.66,149.66,1,"super-wide #3--35,000 columns",ouhsc
16+
0.9,0.9,0.9,0.9,0.9,0.9,1,Repeating Instruments --Sparse,ouhsc
17+
0.87,0.87,0.87,0.87,0.87,0.87,1,Delete Single Arm,ouhsc
18+
1.48,1.48,1.48,1.48,1.48,1.48,1,Delete Multiple Arm,ouhsc
19+
1.67,1.67,1.67,1.67,1.67,1.67,1,longitudinal single arm,ouhsc
20+
0.91,0.91,0.91,0.91,0.91,0.91,1,decimal comma and dot,ouhsc
21+
0.9,0.9,0.9,0.9,0.9,0.9,1,decimal comma,ouhsc
22+
0.9,0.9,0.9,0.9,0.9,0.9,1,decimal dot,ouhsc
23+
1.03,1.03,1.03,1.03,1.03,1.03,1,Validation Types,ouhsc
24+
1.07,1.07,1.07,1.07,1.07,1.07,1,Blank for Gray Status,ouhsc
25+
0.86,0.86,0.86,0.86,0.86,0.86,1,Checkboxes 1,ouhsc
26+
1.04,1.04,1.04,1.04,1.04,1.04,1,Vignette: Longitudinal & Repeating Measures,ouhsc
27+
1.32,1.32,1.32,1.32,1.32,1.32,1,classic,redcaptidier
28+
2.07,2.07,2.07,2.07,2.07,2.07,1,classic no repeat,redcaptidier
29+
2.35,2.35,2.35,2.35,2.35,2.35,1,longitudinal,redcaptidier
30+
2.35,2.35,2.35,2.35,2.35,2.35,1,longitudinal no arms,redcaptidier
31+
4.16,4.16,4.16,4.16,4.16,4.16,1,longitudinal no repeat,redcaptidier
32+
2.72,2.72,2.72,2.72,2.72,2.72,1,deep dive vignette,redcaptidier
33+
1.18,1.18,1.18,1.18,1.18,1.18,1,repeat first instrument,redcaptidier
34+
2.31,2.31,2.31,2.31,2.31,2.31,1,repeat event,redcaptidier
35+
1.23,1.23,1.23,1.23,1.23,1.23,1,restricted access,redcaptidier
36+
1.36,1.36,1.36,1.36,1.36,1.36,1,large sparse db,redcaptidier
37+
1.22,1.22,1.22,1.22,1.22,1.22,1,data access groups,redcaptidier
38+
2.31,2.31,2.31,2.31,2.31,2.31,1,longitudinal data access groups,redcaptidier
39+
2.38,2.38,2.38,2.38,2.38,2.38,1,mixed structure repeat no repeat,redcaptidier
40+
8.12,8.12,8.12,8.12,8.12,8.12,1,prodigy db,redcaptidier
41+
6.22,6.22,6.22,6.22,6.22,6.22,1,cart comprehensive db,redcaptidier

utility/refresh.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,11 @@ devtools::check( # Equivalent of R-hub
6464
incoming = TRUE
6565
)
6666
# Approx matches to https://cran.r-project.org/web/checks/check_flavors.html
67-
rhub::rhub_check(platforms = c("linux", "windows", "ubuntu-next", "ubuntu-release")) # These will be available in GitHub Actions
68-
devtools::check_win_devel(email = "hannar1@chop.edu") # CRAN submission policies encourage the development version
67+
rhub::rhub_check(
68+
platforms = c("linux", "windows", "ubuntu-next", "ubuntu-release"),
69+
gh_url = "https://github.com/CHOP-CGTInformatics/REDCapTidieR"
70+
) # These will be available in GitHub Actions
71+
devtools::check_win_devel(email = "porterej@chop.edu") # CRAN submission policies encourage the development version
6972
# Note: Must be off of VPN
7073
# To run reverse dependency check, manually trigger the "Revere dependency check" workflow in GitHub Actions
7174
# Careful, the last question ultimately uploads it to CRAN, where you can't delete/reverse your decision.

utility/test_creds.R

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ creds <- rbind(ouhsc_creds %>% mutate(source = "ouhsc"), redcaptidier_creds %>%
4444

4545
microbenchmark_fx <- function(redcap_uri, token, name, times = 1){
4646
microbenchmark(
47-
name = suppressWarnings(read_redcap(redcap_uri = redcap_uri, token = token, allow_mixed_structure = TRUE)),
47+
name = suppressWarnings(read_redcap(
48+
redcap_uri = redcap_uri,
49+
token = token,
50+
allow_mixed_structure = TRUE,
51+
export_data_access_groups = FALSE
52+
)
53+
),
4854
times = times,
4955
unit = "seconds"
5056
)

0 commit comments

Comments
 (0)