Skip to content

Commit eab8873

Browse files
authored
Merge pull request #548 from OuhscBbmc/dev
final touched for v1.3.0
2 parents c4975da + 6b22f5a commit eab8873

15 files changed

+33
-189
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Description: Encapsulates functions to streamline calls from R to the REDCap
66
University. The Application Programming Interface (API) offers an avenue
77
to access and modify data programmatically, improving the capacity for
88
literate and reproducible programming.
9-
Version: 1.2.0.9000
9+
Version: 1.3.0
1010
Authors@R: c(person("Will", "Beasley", role = c("aut", "cre"), email =
1111
"[email protected]", comment = c(ORCID = "0000-0002-5613-5006")),
1212
person("David", "Bard", role = "ctb", comment = c(ORCID = "0000-0002-3922-8489")),

NEWS.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# REDCapR (development version)
2-
31
Release History
42
==========================================================
53

@@ -10,14 +8,13 @@ Quick links:
108
* [Current & previous GitHub Issues](https://github.com/OuhscBbmc/REDCapR/issues?q=is%3Aissue)
119
* [Documentation for current GitHub version](https://ouhscbbmc.github.io/REDCapR/)
1210

13-
Version 1.3.x (Not yet released on CRAN)
11+
Version 1.3.0 (released 2024-10-22)
1412
==========================================================
1513

16-
These features are not yet on CRAN. Install with `remotes::install_github("OuhscBbmc/REDCapR")`
17-
1814
### Minor Enhancements
1915

2016
* Redirection layer for test suite allows you to plug in your own server (#539, #542, #544)
17+
* Skip a test when checked on CRAN servers (but not on local or GitHub Action machines)
2118

2219
Version 1.2.0 (released 2024-09-08)
2320
==========================================================

cran-comments.md

+9-40
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Description
22
===============================================
33

4-
This submission is primarily to address a change in the REDCap server. A lot of packages additions in the meantime were building up.
4+
This submission is primarily to address a failing test.
5+
One of the test (out of hundreds) was missing `testthat::skip_on_cran()`.
56

67
Thank you for taking the time to review my submission, and please tell me if there's something else I should do for CRAN. -Will Beasley
78

@@ -11,53 +12,21 @@ Test environments
1112
1. Local Ubuntu, R 4.4.1
1213
2. Local Win11, R 4.4.1 patched
1314
3. R-hub
14-
1. [Ubuntu Linux, R-devel](https://github.com/OuhscBbmc/REDCapR/actions/runs/10748844649/job/29817754743)
15-
2. [Windows Server, R-devel](https://github.com/OuhscBbmc/REDCapR/actions/runs/10748844649/job/29817754878)
16-
3. [MacOS, R-devel](https://github.com/OuhscBbmc/REDCapR/actions/runs/10748844649/job/29817754969)
17-
4. [win-builder](https://win-builder.r-project.org/6a44Y48qLSlw/), development version.
15+
1. [Ubuntu Linux, R-devel](https://github.com/OuhscBbmc/REDCapR/actions/runs/11469699615/job/31917444604)
16+
2. [Windows Server, R-devel](https://github.com/OuhscBbmc/REDCapR/actions/runs/11469699615/job/31917445020)
17+
3. [MacOS, R-devel](https://github.com/OuhscBbmc/REDCapR/actions/runs/11469699615/job/31917445170)
18+
4. [win-builder](https://win-builder.r-project.org/7m12AMR9sIC2//), development version.
1819
5. [GiHub Actions R-CMD-check](https://github.com/OuhscBbmc/REDCapR/actions/workflows/check-release.yaml), Ubuntu 22.04 LTS
1920

2021
R CMD check results
2122
-----------------------------------------------
2223

2324
* No ERRORs or WARNINGs on any builds.
24-
* One one Ubuntu build, there was this warning.
25-
I don't understand the source. I'm not calling any function called `tidy()` when I search. And the two hyperlinks containing "tidy" look fine to my eye.
26-
27-
```
28-
❯ checking HTML version of manual ... NOTE
29-
Skipping checking HTML validation: no command 'tidy' found
30-
```
25+
* One NOTE:
26+
* <https://www.hhs.gov/answers/hipaa/what-is-phi/index.html> produced a 403 in the check, but it resolves fine in the browser.
3127

3228
Downstream dependencies
3329
-----------------------------------------------
3430

35-
With one exception,
36-
packages that depend/import/suggest REDCapR pass the
31+
All packages that depend/import/suggest REDCapR pass the
3732
[Reverse dependency check](https://github.com/OuhscBbmc/REDCapR/actions/workflows/recheck.yml)s.
38-
39-
I worked with **tidyREDCap** team and they accepted a PR that fixes the problem:
40-
<https://github.com/RaymondBalise/tidyREDCap/pull/61>.
41-
It completes successfully on my local machine.
42-
43-
```
44-
------- Check results summary ------
45-
Check status summary:
46-
ERROR NOTE OK
47-
Source packages 0 0 1
48-
Reverse depends 1 2 3
49-
50-
Check results summary:
51-
REDCapR ... OK
52-
rdepends_REDCapCAST ... OK
53-
rdepends_REDCapDM ... NOTE
54-
* checking data for non-ASCII characters ... NOTE
55-
rdepends_REDCapTidieR ... OK
56-
rdepends_ReviewR ... NOTE
57-
* checking data for non-ASCII characters ... NOTE
58-
rdepends_codified ... OK
59-
rdepends_tidyREDCap ... ERROR
60-
* checking tests ... ERROR
61-
```
62-
63-
Results: <https://github.com/OuhscBbmc/REDCapR/blob/main/revdep/cran.md>

inst/test-data/projects/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,18 @@ Steps to recreate on a fresh server
99
1. 'unittestphifree': First name = "Unit Test"; Last name "Phi Free".
1010
1. 'unittestphifree-dag1': First name = "Unit Test"; Last name "PHI Free DAG1"
1111
1. Install plugins
12+
1. Copy from [source](https://github.com/OuhscBbmc/REDCapR/tree/main/utility/plugins)
13+
1. Change the `project_id` value at the bottom of each php file.
14+
1. Move to destination directory
15+
1. Update [plugin-redirection.yml](https://github.com/OuhscBbmc/REDCapR/blob/main/inst/misc/plugin-redirection.yml)
16+
1. Copy all the projects to the new server
17+
1. Assign the user (created above) to the "api" user role for each project.
18+
1. Add a token for each project
19+
1. Create a credential file for the new project
20+
(examples [1](https://github.com/OuhscBbmc/REDCapR/blob/main/inst/misc/example.credentials) and
21+
[2](https://github.com/OuhscBbmc/REDCapR/blob/main/inst/misc/dev-2.credentials))
22+
1. Update `redcap_uri`
23+
1. Update the corresponding `project_id`
24+
1. Update the corresponding `token`
25+
1. Leave `username` and `comment` untouched
26+
1. Add new entries to [project-redirection.yml](https://github.com/OuhscBbmc/REDCapR/blob/main/inst/misc/project-redirection.yml)

revdep/.gitignore

-7
This file was deleted.

revdep/README.md

-70
This file was deleted.

revdep/cran.md

-15
This file was deleted.

revdep/email.yml

-5
This file was deleted.

revdep/failures.md

-1
This file was deleted.

revdep/problems.md

-39
This file was deleted.

tests/testthat/test-write-batch.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ test_that("default", {
5454
})
5555

5656
test_that("update-one-field", {
57-
testthat::skip_on_cran
57+
testthat::skip_on_cran()
5858
skip_if_onlyread()
5959

6060
path_expected <- "test-data/specific-redcapr/write-batch/update-one-field.R"

vignettes/BasicREDCapROperations.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ vignette: >
99
%\VignetteEncoding{UTF-8}
1010
---
1111

12-
This vignette covers the the basic functions exposed by the [httr](https://github.com/r-lib/httr) and [curl](https://cran.r-project.org/package=curl) packages which allow you to interact with [REDCap](https://www.project-redcap.org/) through its API.
12+
This vignette covers the the basic functions exposed by the [httr](https://github.com/r-lib/httr) and [curl](https://cran.r-project.org/package=curl) packages which allow you to interact with [REDCap](https://projectredcap.org/) through its API.
1313

1414
Reading REDCap Data
1515
==================================================================

vignettes/SecurityDatabase.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This database contains the tokens and other sensitive content (such as passwords
1919
Create a DSN on each client
2020
========================================
2121

22-
After executing the SQL code in an existing database, create an ODBC [DSN](https://en.wikipedia.org/wiki/Data_source_name) on *each* client machine that calls the database. Download the most recent drivers (as of Aug 2018, the [most recent version is 17](https://docs.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server) for Windows and Linux), then run the wizard. Many values in the wizard will remain at the default values. Here are the important ones to change.
22+
After executing the SQL code in an existing database, create an ODBC [DSN](https://en.wikipedia.org/wiki/Data_source_name) on *each* client machine that calls the database. Download the most recent drivers (as of Aug 2018, the [most recent version is 17](https://learn.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server) for Windows and Linux), then run the wizard. Many values in the wizard will remain at the default values. Here are the important ones to change.
2323

2424
1. Set the DSN's `name` field to whatever is used in the repository's R code.
2525
2. Set the authenticity method to `Integrated Windows authentication`.

vignettes/TroubleshootingApiCalls.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ knitr::opts_chunk$set(
2020
)
2121
```
2222

23-
There are many links in the pipeline between your institution's [REDCap](https://www.project-redcap.org/) server and the API user. When the end result is unsuccessful, this document should help narrow the location of the possible problem. The first two sections will be relevant to almost any language interacting with the API. The remaining sections are possibly relevant only to your language (*e.g.*, Python, R, PHP, SAS, bash), or your software library such as [redcapAPI](https://github.com/nutterb/redcapAPI) and [REDCapR](https://ouhscbbmc.github.io/REDCapR/) in R, [phpcap](https://github.com/iuredcap/phpcap) in PHP, and [PyCap](https://pycap.readthedocs.io/en/latest/) in Python).
23+
There are many links in the pipeline between your institution's [REDCap](https://projectredcap.org/) server and the API user. When the end result is unsuccessful, this document should help narrow the location of the possible problem. The first two sections will be relevant to almost any language interacting with the API. The remaining sections are possibly relevant only to your language (*e.g.*, Python, R, PHP, SAS, bash), or your software library such as [redcapAPI](https://github.com/nutterb/redcapAPI) and [REDCapR](https://ouhscbbmc.github.io/REDCapR/) in R, [phpcap](https://github.com/iuredcap/phpcap) in PHP, and [PyCap](https://pypi.org/project/pycap/) in Python).
2424

2525
Language Agnostic
2626
==================================================================
@@ -124,7 +124,7 @@ knitr::include_graphics("images/PostmanScreenshot.png")
124124
curl -X POST -H "Cache-Control: no-cache" -F "token=9A068C425B1341D69E83064A2D273A70" -F "content=record" -F "format=csv" "https://redcap-dev-2.ouhsc.edu/redcap/api/"
125125
```
126126
127-
If all these checks pass, proceed to the next section. If not, start by consulting with your REDCap administrator. If that fails, consider creating a GitHub issue for your package (*e.g.*, [redcapAPI](https://github.com/nutterb/redcapAPI) and [REDCapR](https://ouhscbbmc.github.io/REDCapR/) in R, [phpcap](https://github.com/iuredcap/phpcap) in PHP, and [PyCap](https://pycap.readthedocs.io/en/latest/) in Python).
127+
If all these checks pass, proceed to the next section. If not, start by consulting with your REDCap administrator. If that fails, consider creating a GitHub issue for your package (*e.g.*, [redcapAPI](https://github.com/nutterb/redcapAPI) and [REDCapR](https://ouhscbbmc.github.io/REDCapR/) in R, [phpcap](https://github.com/iuredcap/phpcap) in PHP, and [PyCap](https://pypi.org/project/pycap/) in Python).
128128
129129
Writing
130130
------------------------------------------------------------------

vignettes/advanced-redcapr-operations.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ vignette: >
1111
%\VignetteEncoding{UTF-8}
1212
---
1313

14-
This vignette covers the the less-typical uses of [REDCapR](https://github.com/OuhscBbmc/REDCapR) to interact with [REDCap](https://www.project-redcap.org/) through its API.
14+
This vignette covers the the less-typical uses of [REDCapR](https://github.com/OuhscBbmc/REDCapR) to interact with [REDCap](https://projectredcap.org/) through its API.
1515

1616
```{r set_options}
1717
#| echo = FALSE,

0 commit comments

Comments
 (0)