diff --git a/CRAN-RELEASE b/CRAN-RELEASE index 486d6b54..0c47ce39 100644 --- a/CRAN-RELEASE +++ b/CRAN-RELEASE @@ -1,2 +1,2 @@ -This package was submitted to CRAN on 2019-09-21. -Once it is accepted, delete this file and tag the release (commit 6d76e90b4c). +This package was submitted to CRAN on 2019-09-22. +Once it is accepted, delete this file and tag the release (commit c2830c824a). diff --git a/DESCRIPTION b/DESCRIPTION index 4a657853..ef0ebef4 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -6,7 +6,7 @@ Description: Encapsulates functions to streamline calls from R to the REDCap University. The Application Programming Interface (API) offers an avenue to access and modify data programmatically, improving the capacity for literate and reproducible programming. -Version: 0.10.1 +Version: 0.10.2 Date: 2019-09-20 Authors@R: c(person("Will", "Beasley", role = c("aut", "cre"), email = "wibeasley@hotmail.com", comment = c(ORCID = "0000-0002-5613-5006")), diff --git a/NEWS.md b/NEWS.md index 93480fd1..fc0296f6 100644 --- a/NEWS.md +++ b/NEWS.md @@ -5,7 +5,7 @@ In the future: * `redcap_read()` and `redcap_read_oneshot()` allows caller to specify data types for columns. -Version 0.10 (to be released) +Version 0.10 (Released 2019-09-22) ========================================================== ### Minor New Features @@ -39,6 +39,7 @@ Version 0.10 (to be released) * the checkmate package inspects most function parameters now (instead of `testit::assert()` and `base:stop()` ) (#190 & #208). * `collapse_vector()` is refactored and tested (#209) * remove dependency on `pkgload` package (#218) +* Update Markdown syntax to new formatting problems (#253) ### Deprecated Features * `retrieve_token_mssql()`, because `retrieve_credential_mssql()` is more general and more useful. diff --git a/README.md b/README.md index bbe85384..ab1dccfb 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [REDCapR](https://github.com/OuhscBbmc/REDCapR) ======= -We’ve been using R with [REDCap](https://projectredcap.org/)’s API since 2012 and have developed [`REDCapR`](https://github.com/OuhscBbmc/REDCapR). Before encapsulating these functions in a package, we were replicating 50+ lines of code to contact REDCap and robustly transform the returned [csv](https://en.wikipedia.org/wiki/Comma-separated_values) into an R [`data.frame`](https://stat.ethz.ch/R-manual/R-devel/library/base/html/data.frame.html); it took twice that much to implement batching. All this can be done in one call to [`redcap_read()`](https://ouhscbbmc.github.io/REDCapR/reference/redcap_read.html): +We’ve been using R with [REDCap](https://projectredcap.org/)’s API since 2012 and have developed [`REDCapR`](https://github.com/OuhscBbmc/REDCapR). Before encapsulating these functions in a package, we were replicating 50+ lines of code to contact REDCap and robustly transform the returned [csv](https://en.wikipedia.org/wiki/Comma-separated_values) into an R `data.frame`; it took twice that much to implement batching. All this can be done in one call to [`redcap_read()`](https://ouhscbbmc.github.io/REDCapR/reference/redcap_read.html): ```r ds <- redcap_read(redcap_uri=uri, token=token)$data @@ -52,7 +52,7 @@ Also checkout the other packages that exist for communicating with REDCap, which ### Collaborative Development -We encourage input and collaboration. If you're familiar with GitHub and R packages, feel free to submit a [pull request](https://github.com/OuhscBbmc/REDCapR/pulls). If you'd like to report a bug or make a suggestion, please create a GitHub [issue](https://github.com/OuhscBbmc/REDCapR/issues); issues are a usually a good place to ask public questions too. However, feel free to email Will (). Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md); by participating in this project you agree to abide by its terms. We have some starting material described in the [`./documentation-for-developers/`](https://github.com/OuhscBbmc/REDCapR/tree/master/documentation-for-developers) directory. +We encourage input and collaboration. If you're familiar with GitHub and R packages, feel free to submit a [pull request](https://github.com/OuhscBbmc/REDCapR/pulls). If you'd like to report a bug or make a suggestion, please create a GitHub [issue](https://github.com/OuhscBbmc/REDCapR/issues); issues are a usually a good place to ask public questions too. However, feel free to email Will (). Please note that this project is released with a [Contributor Code of Conduct](https://github.com/OuhscBbmc/REDCapR/blob/master/CONDUCT.md); by participating in this project you agree to abide by its terms. We have some starting material described in the [`./documentation-for-developers/`](https://github.com/OuhscBbmc/REDCapR/tree/master/documentation-for-developers) directory. We'd like to thank the following developers for their [advice](https://github.com/OuhscBbmc/REDCapR/issues?q=is%3Aissue+is%3Aclosed) and [code contributions](https://github.com/OuhscBbmc/REDCapR/graphs/contributors): [Benjamin Nutter](https://github.com/nutterb), [Rollie Parrish](https://github.com/rparrish), [Scott Burns](https://github.com/sburns), [John Aponte](https://github.com/johnaponte), [Andrew Peters](https://github.com/ARPeters), and [Hao Zhu](https://github.com/haozhu233). diff --git a/cran-comments.md b/cran-comments.md index 31ada9c0..50d8c1d3 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -2,32 +2,33 @@ Description ----------------------------------------------- This submission includes new features and also addresses some (soon-to-be) breaking changes in the libraries underneath. +I have fixed the three points described in your previous response (documented in [our issue](https://github.com/OuhscBbmc/REDCapR/issues/253)). For the first point, I fixed some markdown syntax so the API's url is correctly interpreted. I'm sorry the test builds below didn't uncover the last two. + 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 Test environments ----------------------------------------------- -The win-builder and a local machine have used the CRAN version of dplyr. The others have used the current GitHub master version of dplyr. - -* Local Ubuntu, R 3.6.1 patched -* Local Win8, R 3.6.1 patched -* [r-hub](https://builder.r-hub.io/status/REDCapR_0.10.1.tar.gz-b2178285b2ac4196bce254c553eaab50) - * Ubuntu Linux 16.04 LTS, R-release, GCC - * Fedora Linux, R-devel, clang, gfortran -* [win-builder](https://win-builder.r-project.org/3wAMI67afYVu/), development version. -* [Travis CI](https://travis-ci.org/OuhscBbmc/REDCapR), Ubuntu 14.04 LTS -* [AppVeyor](https://ci.appveyor.com/project/wibeasley/REDCapR), Windows Server 2012 +1. Local Ubuntu, R 3.6.1 patched +1. Local Win8, R 3.6.1 patched +1. r-hub + 1. [Ubuntu Linux 16.04 LTS, R-release, GCC](https://builder.r-hub.io/status/REDCapR_0.10.1.tar.gz-ffc36a958fe44f3fb3263929670f8138) + 1. [Fedora Linux, R-devel, clang, gfortran](https://builder.r-hub.io/status/REDCapR_0.10.1.tar.gz-2e2bed0d3cda44429a8f830c2b9d8e92) + 1. [Windows Server](https://builder.r-hub.io/status/REDCapR_0.10.1.tar.gz-0c79ee0f9b3e49f7b381348e9f7283b0) +1. [win-builder](https://win-builder.r-project.org/a9ub2IBAb24W), development version. +1. [Travis CI](https://travis-ci.org/OuhscBbmc/REDCapR), Ubuntu 14.04 LTS +1. [AppVeyor](https://ci.appveyor.com/project/wibeasley/REDCapR), Windows Server 2012 R CMD check results ----------------------------------------------- -* No ERRORs or WARNINGs on any builds. -* There is one NOTE related to the url `https://bbmc.ouhsc.edu/redcap/api/`. This url is the root of the API, and not intended to be navigated to by humans. +* No ERRORs, WARNINGs, or NOTEs on any builds. Downstream dependencies ----------------------------------------------- -No other packages depend/import this one. +No downstream pakcages are affecteed. Only one package depends/imports REDCapR, and it passes my local checks. + * [codified](https://CRAN.R-project.org/package=codified) diff --git a/docs/404.html b/docs/404.html index 81def52c..fe4dd76b 100644 --- a/docs/404.html +++ b/docs/404.html @@ -82,7 +82,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 diff --git a/docs/CONDUCT.html b/docs/CONDUCT.html index 903f6fb6..4fb758c0 100644 --- a/docs/CONDUCT.html +++ b/docs/CONDUCT.html @@ -82,7 +82,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 diff --git a/docs/apple-touch-icon-120x120.png b/docs/apple-touch-icon-120x120.png deleted file mode 100644 index c357b368..00000000 Binary files a/docs/apple-touch-icon-120x120.png and /dev/null differ diff --git a/docs/apple-touch-icon-152x152.png b/docs/apple-touch-icon-152x152.png deleted file mode 100644 index 1ba80381..00000000 Binary files a/docs/apple-touch-icon-152x152.png and /dev/null differ diff --git a/docs/apple-touch-icon-180x180.png b/docs/apple-touch-icon-180x180.png deleted file mode 100644 index 5d9ce0e5..00000000 Binary files a/docs/apple-touch-icon-180x180.png and /dev/null differ diff --git a/docs/apple-touch-icon-60x60.png b/docs/apple-touch-icon-60x60.png deleted file mode 100644 index 6efeee7d..00000000 Binary files a/docs/apple-touch-icon-60x60.png and /dev/null differ diff --git a/docs/apple-touch-icon-76x76.png b/docs/apple-touch-icon-76x76.png deleted file mode 100644 index 5ba4fa2f..00000000 Binary files a/docs/apple-touch-icon-76x76.png and /dev/null differ diff --git a/docs/apple-touch-icon.png b/docs/apple-touch-icon.png deleted file mode 100644 index 3d879866..00000000 Binary files a/docs/apple-touch-icon.png and /dev/null differ diff --git a/docs/articles/BasicREDCapROperations.html b/docs/articles/BasicREDCapROperations.html index 4fdbea1e..c1185d65 100644 --- a/docs/articles/BasicREDCapROperations.html +++ b/docs/articles/BasicREDCapROperations.html @@ -40,7 +40,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 @@ -108,7 +108,7 @@ -
The data dictionary describing 16 fields was read from REDCap in 0.5 seconds.  The http status code was 200.
-
2 records and 1 columns were read from REDCap in 0.4 seconds.  The http status code was 200.
-
Starting to read 2 records  at 2019-09-20 18:16:16.
+
The data dictionary describing 16 fields was read from REDCap in 0.2 seconds.  The http status code was 200.
+
2 records and 1 columns were read from REDCap in 0.3 seconds.  The http status code was 200.
+
Starting to read 2 records  at 2019-09-22 15:36:58.
Reading batch 1 of 1, with subjects 1 through 3 (ie, 2 unique subject records).
-
2 records and 24 columns were read from REDCap in 1 seconds.  The http status code was 200.
+
2 records and 24 columns were read from REDCap in 0.3 seconds.  The http status code was 200.
The data dictionary describing 16 fields was read from REDCap in 0.3 seconds.  The http status code was 200.
-
2 records and 1 columns were read from REDCap in 0.3 seconds.  The http status code was 200.
-
Starting to read 2 records  at 2019-09-20 18:16:18.
+
2 records and 1 columns were read from REDCap in 0.2 seconds.  The http status code was 200.
+
Starting to read 2 records  at 2019-09-22 15:36:59.
Reading batch 1 of 1, with subjects 1 through 3 (ie, 2 unique subject records).
-
2 records and 24 columns were read from REDCap in 0.5 seconds.  The http status code was 200.
+
2 records and 24 columns were read from REDCap in 0.4 seconds.  The http status code was 200.
  record_id name_first name_last                                 address
 1         1     Nutmeg  Nutmouse 14 Rose Cottage St.\nKenning UK, 323232
@@ -237,11 +237,11 @@ 

token = token, fields = desired_fields_v1 )$data

-
The data dictionary describing 16 fields was read from REDCap in 1.2 seconds.  The http status code was 200.
-
5 records and 1 columns were read from REDCap in 1.1 seconds.  The http status code was 200.
-
Starting to read 5 records  at 2019-09-20 18:16:21.
+
The data dictionary describing 16 fields was read from REDCap in 0.2 seconds.  The http status code was 200.
+
5 records and 1 columns were read from REDCap in 0.3 seconds.  The http status code was 200.
+
Starting to read 5 records  at 2019-09-22 15:37:01.
Reading batch 1 of 1, with subjects 1 through 5 (ie, 5 unique subject records).
-
5 records and 3 columns were read from REDCap in 1.1 seconds.  The http status code was 200.
+
5 records and 3 columns were read from REDCap in 0.4 seconds.  The http status code was 200.
-
The data dictionary describing 16 fields was read from REDCap in 0.6 seconds.  The http status code was 200.
-
5 records and 1 columns were read from REDCap in 0.9 seconds.  The http status code was 200.
-
Starting to read 5 records  at 2019-09-20 18:16:24.
+
The data dictionary describing 16 fields was read from REDCap in 0.5 seconds.  The http status code was 200.
+
5 records and 1 columns were read from REDCap in 0.2 seconds.  The http status code was 200.
+
Starting to read 5 records  at 2019-09-22 15:37:02.
Reading batch 1 of 1, with subjects 1 through 5 (ie, 5 unique subject records).
-
5 records and 3 columns were read from REDCap in 1.9 seconds.  The http status code was 200.
+
5 records and 3 columns were read from REDCap in 0.3 seconds.  The http status code was 200.
  record_id name_first age
 1         1     Nutmeg  11
@@ -274,11 +274,11 @@ 

token = token, fields = desired_fields_v3 )$data

-
The data dictionary describing 16 fields was read from REDCap in 0.3 seconds.  The http status code was 200.
-
5 records and 1 columns were read from REDCap in 0.5 seconds.  The http status code was 200.
-
Starting to read 5 records  at 2019-09-20 18:16:28.
+
The data dictionary describing 16 fields was read from REDCap in 0.2 seconds.  The http status code was 200.
+
5 records and 1 columns were read from REDCap in 0.3 seconds.  The http status code was 200.
+
Starting to read 5 records  at 2019-09-22 15:37:04.
Reading batch 1 of 1, with subjects 1 through 5 (ie, 5 unique subject records).
-
5 records and 3 columns were read from REDCap in 0.5 seconds.  The http status code was 200.
+
5 records and 3 columns were read from REDCap in 0.3 seconds.  The http status code was 200.
  record_id        dob weight
 1         1 2003-08-30      1
@@ -303,10 +303,10 @@ 

records = desired_records_v3 )$data

The data dictionary describing 16 fields was read from REDCap in 0.3 seconds.  The http status code was 200.
-
2 records and 1 columns were read from REDCap in 0.6 seconds.  The http status code was 200.
-
Starting to read 2 records  at 2019-09-20 18:16:29.
+
2 records and 1 columns were read from REDCap in 0.3 seconds.  The http status code was 200.
+
Starting to read 2 records  at 2019-09-22 15:37:05.
Reading batch 1 of 1, with subjects 3 through 5 (ie, 2 unique subject records).
-
2 records and 24 columns were read from REDCap in 0.8 seconds.  The http status code was 200.
+
2 records and 24 columns were read from REDCap in 0.3 seconds.  The http status code was 200.
  record_id name_first name_last                            address
 1         3     Marcus      Wood     243 Hill St.\nGuthrie OK 73402
@@ -346,11 +346,11 @@ 

token = token, fields = desired_fields_v1 )

-
The data dictionary describing 16 fields was read from REDCap in 0.8 seconds.  The http status code was 200.
-
5 records and 1 columns were read from REDCap in 0.5 seconds.  The http status code was 200.
-
Starting to read 5 records  at 2019-09-20 18:16:32.
+
The data dictionary describing 16 fields was read from REDCap in 0.3 seconds.  The http status code was 200.
+
5 records and 1 columns were read from REDCap in 0.2 seconds.  The http status code was 200.
+
Starting to read 5 records  at 2019-09-22 15:37:07.
Reading batch 1 of 1, with subjects 1 through 5 (ie, 5 unique subject records).
-
5 records and 3 columns were read from REDCap in 1 seconds.  The http status code was 200.
+
5 records and 3 columns were read from REDCap in 0.3 seconds.  The http status code was 200.
$data
   record_id name_first age
@@ -367,7 +367,7 @@ 

[1] "200" $outcome_messages -[1] "5 records and 3 columns were read from REDCap in 1 seconds. The http status code was 200." +[1] "5 records and 3 columns were read from REDCap in 0.3 seconds. The http status code was 200." $records_collapsed [1] "" @@ -385,7 +385,7 @@

[1] "" $elapsed_seconds -[1] 2.970515

+[1] 1.336262
@@ -402,80 +402,78 @@

language (EN) collate en_US.UTF-8 ctype en_US.UTF-8 - tz America/Denver - date 2019-09-20 + tz America/Chicago + date 2019-09-22 ─ Packages ────────────────────────────────────────────────────────────── - package * version date lib source - assertthat 0.2.1 2019-03-21 [2] CRAN (R 3.6.0) - backports 1.1.4 2019-04-10 [2] CRAN (R 3.6.0) - callr 3.3.1 2019-07-18 [2] CRAN (R 3.6.1) - checkmate 1.9.4 2019-07-04 [2] CRAN (R 3.6.0) - cli 1.1.0 2019-03-19 [2] CRAN (R 3.6.0) - colorspace 1.4-1 2019-03-18 [2] CRAN (R 3.6.0) - crayon 1.3.4 2017-09-16 [2] CRAN (R 3.6.0) - curl 4.1 2019-09-16 [2] CRAN (R 3.6.1) - desc 1.2.0 2018-05-01 [2] CRAN (R 3.6.0) - devtools 2.2.0 2019-09-07 [2] CRAN (R 3.6.1) - digest 0.6.20 2019-07-04 [2] CRAN (R 3.6.0) - dplyr 0.8.3 2019-07-04 [2] CRAN (R 3.6.0) - DT 0.8 2019-08-07 [2] CRAN (R 3.6.1) - ellipsis 0.2.0.1 2019-07-02 [2] CRAN (R 3.6.0) - evaluate 0.14 2019-05-28 [2] CRAN (R 3.6.0) - fs 1.3.1 2019-05-06 [2] CRAN (R 3.6.0) - glue 1.3.1 2019-03-12 [2] CRAN (R 3.6.0) - hms 0.5.1 2019-08-23 [2] CRAN (R 3.6.1) - htmltools 0.3.6 2017-04-28 [2] CRAN (R 3.6.0) - htmlwidgets 1.3 2018-09-30 [2] CRAN (R 3.6.0) - httr 1.4.1 2019-08-05 [2] CRAN (R 3.6.1) - kableExtra 1.1.0.9001 2019-05-18 [2] local - knitr * 1.24 2019-08-08 [2] CRAN (R 3.6.1) - magrittr * 1.5 2014-11-22 [2] CRAN (R 3.6.0) - MASS 7.3-51.4 2019-04-26 [2] CRAN (R 3.6.0) - memoise 1.1.0 2017-04-21 [2] CRAN (R 3.6.0) - munsell 0.5.0 2018-06-12 [2] CRAN (R 3.6.0) - pillar 1.4.2 2019-06-29 [2] CRAN (R 3.6.0) - pkgbuild 1.0.5 2019-08-26 [2] CRAN (R 3.6.1) - pkgconfig 2.0.2 2018-08-16 [2] CRAN (R 3.6.0) - pkgdown 1.4.1 2019-09-15 [2] CRAN (R 3.6.1) - pkgload 1.0.2 2018-10-29 [2] CRAN (R 3.6.0) - prettyunits 1.0.2 2015-07-13 [2] CRAN (R 3.6.0) - processx 3.4.1 2019-07-18 [2] CRAN (R 3.6.1) - ps 1.3.0 2018-12-21 [2] CRAN (R 3.6.0) - purrr 0.3.2 2019-03-15 [2] CRAN (R 3.6.0) - R6 2.4.0 2019-02-14 [2] CRAN (R 3.6.0) - Rcpp 1.0.2 2019-07-25 [2] CRAN (R 3.6.1) - readr 1.3.1 2018-12-21 [2] CRAN (R 3.6.0) - REDCapR * 0.9.10.9003 2019-09-21 [1] local - remotes 2.1.0 2019-06-24 [2] CRAN (R 3.6.0) - rlang 0.4.0 2019-06-25 [2] CRAN (R 3.6.0) - rmarkdown 1.15 2019-08-21 [2] CRAN (R 3.6.1) - rprojroot 1.3-2 2018-01-03 [2] CRAN (R 3.6.0) - rstudioapi 0.10 2019-03-19 [2] CRAN (R 3.6.0) - rvest 0.3.4 2019-05-15 [2] CRAN (R 3.6.0) - scales 1.0.0 2018-08-09 [2] CRAN (R 3.6.0) - sessioninfo 1.1.1 2018-11-05 [2] CRAN (R 3.6.0) - stringi 1.4.3 2019-03-12 [2] CRAN (R 3.6.0) - stringr 1.4.0 2019-02-10 [2] CRAN (R 3.6.0) - testthat 2.2.1 2019-07-25 [2] CRAN (R 3.6.1) - tibble 2.1.3 2019-06-06 [2] CRAN (R 3.6.0) - tidyselect 0.2.5 2018-10-11 [2] CRAN (R 3.6.0) - usethis 1.5.1 2019-07-04 [2] CRAN (R 3.6.0) - vctrs 0.2.0 2019-07-05 [2] CRAN (R 3.6.0) - viridisLite 0.3.0 2018-02-01 [2] CRAN (R 3.6.0) - webshot 0.5.1 2018-09-28 [2] CRAN (R 3.6.0) - withr 2.1.2 2018-03-15 [2] CRAN (R 3.6.0) - xfun 0.9 2019-08-21 [2] CRAN (R 3.6.1) - xml2 1.2.2 2019-08-09 [2] CRAN (R 3.6.1) - yaml 2.2.0 2018-07-25 [2] CRAN (R 3.6.0) - zeallot 0.1.0 2018-01-28 [2] CRAN (R 3.6.0) + package * version date lib source + assertthat 0.2.1 2019-03-21 [2] CRAN (R 3.6.0) + backports 1.1.4 2019-04-10 [2] CRAN (R 3.6.0) + callr 3.3.1 2019-07-18 [2] CRAN (R 3.6.1) + checkmate 1.9.4 2019-07-04 [2] CRAN (R 3.6.0) + cli 1.1.0 2019-03-19 [2] CRAN (R 3.6.0) + colorspace 1.4-1 2019-03-18 [2] CRAN (R 3.6.0) + crayon 1.3.4 2017-09-16 [2] CRAN (R 3.6.0) + curl 4.1 2019-09-16 [2] CRAN (R 3.6.1) + desc 1.2.0 2018-05-01 [2] CRAN (R 3.6.0) + devtools 2.2.0.9000 2019-09-21 [2] Github (r-lib/devtools@2765fbe) + digest 0.6.21 2019-09-20 [2] CRAN (R 3.6.1) + dplyr 0.8.3 2019-07-04 [2] CRAN (R 3.6.0) + ellipsis 0.3.0 2019-09-20 [2] CRAN (R 3.6.1) + evaluate 0.14 2019-05-28 [2] CRAN (R 3.6.0) + fs 1.3.1 2019-05-06 [2] CRAN (R 3.6.0) + glue 1.3.1 2019-03-12 [2] CRAN (R 3.6.0) + hms 0.5.1 2019-08-23 [2] CRAN (R 3.6.1) + htmltools 0.3.6 2017-04-28 [2] CRAN (R 3.6.0) + httr 1.4.1 2019-08-05 [2] CRAN (R 3.6.1) + kableExtra 1.1.0.9001 2019-05-18 [2] local + knitr * 1.25 2019-09-18 [2] CRAN (R 3.6.1) + magrittr * 1.5 2014-11-22 [2] CRAN (R 3.6.0) + MASS 7.3-51.4 2019-04-26 [2] CRAN (R 3.6.0) + memoise 1.1.0 2017-04-21 [2] CRAN (R 3.6.0) + munsell 0.5.0 2018-06-12 [2] CRAN (R 3.6.0) + pillar 1.4.2 2019-06-29 [2] CRAN (R 3.6.0) + pkgbuild 1.0.5 2019-08-26 [2] CRAN (R 3.6.1) + pkgconfig 2.0.2 2018-08-16 [2] CRAN (R 3.6.0) + pkgdown 1.4.1 2019-09-15 [2] CRAN (R 3.6.1) + pkgload 1.0.2 2018-10-29 [2] CRAN (R 3.6.0) + prettyunits 1.0.2 2015-07-13 [2] CRAN (R 3.6.0) + processx 3.4.1 2019-07-18 [2] CRAN (R 3.6.1) + ps 1.3.0 2018-12-21 [2] CRAN (R 3.6.0) + purrr 0.3.2 2019-03-15 [2] CRAN (R 3.6.0) + R6 2.4.0 2019-02-14 [2] CRAN (R 3.6.0) + Rcpp 1.0.2 2019-07-25 [2] CRAN (R 3.6.1) + readr 1.3.1 2018-12-21 [2] CRAN (R 3.6.0) + REDCapR * 0.10.1 2019-09-22 [1] local + remotes 2.1.0 2019-06-24 [2] CRAN (R 3.6.0) + rlang 0.4.0 2019-06-25 [2] CRAN (R 3.6.0) + rmarkdown 1.15 2019-08-21 [2] CRAN (R 3.6.1) + rprojroot 1.3-2 2018-01-03 [2] CRAN (R 3.6.0) + rstudioapi 0.10 2019-03-19 [2] CRAN (R 3.6.0) + rvest 0.3.4 2019-05-15 [2] CRAN (R 3.6.0) + scales 1.0.0 2018-08-09 [2] CRAN (R 3.6.0) + sessioninfo 1.1.1 2018-11-05 [2] CRAN (R 3.6.0) + stringi 1.4.3 2019-03-12 [2] CRAN (R 3.6.0) + stringr 1.4.0 2019-02-10 [2] CRAN (R 3.6.0) + testthat 2.2.1 2019-07-25 [2] CRAN (R 3.6.1) + tibble 2.1.3 2019-06-06 [2] CRAN (R 3.6.0) + tidyselect 0.2.5 2018-10-11 [2] CRAN (R 3.6.0) + usethis 1.5.1 2019-07-04 [2] CRAN (R 3.6.0) + vctrs 0.2.0 2019-07-05 [2] CRAN (R 3.6.0) + viridisLite 0.3.0 2018-02-01 [2] CRAN (R 3.6.0) + webshot 0.5.1 2018-09-28 [2] CRAN (R 3.6.0) + withr 2.1.2 2018-03-15 [2] CRAN (R 3.6.0) + xfun 0.9 2019-08-21 [2] CRAN (R 3.6.1) + xml2 1.2.2 2019-08-09 [2] CRAN (R 3.6.1) + yaml 2.2.0 2018-07-25 [2] CRAN (R 3.6.0) + zeallot 0.1.0 2018-01-28 [2] CRAN (R 3.6.0) -[1] /tmp/RtmpdqBkOl/temp_libpath4e0f587a791c +[1] /tmp/RtmpsgrWgH/temp_libpath740257cb29b9 [2] /home/wibeasley/R/x86_64-pc-linux-gnu-library/3.6 [3] /usr/local/lib/R/site-library [4] /usr/lib/R/site-library [5] /usr/lib/R/library -

Report rendered by wibeasley at 2019-09-20, 18:16 -0600 in 28 seconds.

+

Report rendered by wibeasley at 2019-09-22, 15:37 -0500 in 15 seconds.

diff --git a/docs/articles/SecurityDatabase.html b/docs/articles/SecurityDatabase.html index 35476b24..292a694b 100644 --- a/docs/articles/SecurityDatabase.html +++ b/docs/articles/SecurityDatabase.html @@ -40,7 +40,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 @@ -108,7 +108,7 @@ @@ -108,7 +108,7 @@
@@ -181,84 +184,84 @@

  1. Is httr installed on the user’s local machine? If so, running library(httr) should not produce any error messages if you’re starting with a fresh session of R:

    -
    > library(httr)
    +
    > library(httr)
  2. Does the user have the most recent version of httr? There are several ways to do this, but the easiest is probably to run update.packages(ask=FALSE, repos="http://cran.rstudio.com"). The optional argument ask prevents the user from needing to respond ‘Y’ to each outdated package.

  3. Can the user query a test project using httr? Both the redcapAPI and REDCapR packages employ something similar to the following function in httr. If you’re curious, here is the relevant source code for redcapAPI and REDCapR.

    If this check fails, consider attempting again with the uri and token used above in the Postman example.

    This check avoids checking the SSL certificate in order to simplify the troubleshooting. SSL verification is supported by default in the PyCap, redcapAPI, and REDCapR packages.

    - +

    Alternatively, you can try using the httr package, which uses RCurl underneath. REDCapR and a recent fork of redcap actually uses httr directly, instead of RCurl. As of 2014-07-06, this works with the Windows 8 version for libcurl (which is underneath `RCurl), but not with some Linux versions; in this case pass the location of the SSL cert file.

    - +
  4. Can the user query a subset of their project using RCurl? This step is like the previous one, but with two differences. First, it’s using their REDCap project (instead of the test project). Second, it pulls fewer records, and a smaller collection of fields. Subsetting can help troubleshoot by avoiding (and thus identifying) cells with problematic values.

    Notice this call to RCurl::postForm() now passes values to the records and fields parameters. Also notice the value is a single long string, rather a vector of shorter strings (which is more natural to most R users).

    - +
  5. Can the user query an entire project using RCurl? There are two advantages of trying a subset of the data. First, small datasets avoid the time-out errors that plague large datasets. Second, it may avoid problematic values being passed through the pipeline. If the current check fails but the previous check succeeds, then experiment with different expanses of records and fields. This should help determine which values are causing the problems, or if there’s simply too much data being pulled in one pass.

    If the desired dataset is too large, consider if you can prune unnecessary records or fields. If not, one solution is to pull smaller, multiple batches using the API, then reassemble them. The redcap_read() function in REDCapR does this automatically, and allows the user to specify a batch_size.

    - +

@@ -268,24 +271,75 @@

REDCapR is a package that uses cURL (via httr) to communicate with REDCap, and wraps convenience functions around it to reduce the size and complexity of the user’s code. The package’s basic functions are demonstrated in a vignette and are documented in its reference manual (a downloadable pdf of the functions are also available).

If you’re not using REDCapR, you can skip this section and proceed to ‘Importing into REDCap from R’ below.

    -
  1. Is REDCapR installed on the user’s machine? Currently the easiest way to install REDCapR is with the devtools. The follow code installs devtools, then installs REDCapR. r install.packages("devtools", repos="http://cran.rstudio.com") devtools::install_github(repo="OuhscBbmc/REDCapR")

  2. -
  3. Does REDCapR load successfully on the user’s machine? If so, running library(REDCapR) should produce the following output if you’re starting with a fresh session of R: r library(REDCapR) ## Loading required package: REDCapR

  4. -

    Can the user export from an example project? This is the same fake data hosted by the OUHSC BBMC as in the previous section. r library(REDCapR) #Load the package into the current R session. uri <- "https://bbmc.ouhsc.edu/redcap/api/" token <- "9A81268476645C4E5F03428B8AC3AA7B" redcap_read(redcap_uri=uri, token=token)$data

    -

    The previous code should produce similar output. Notice there are five rows and the columns will wrap around if your console window is too narrow. ``` 5 records and 1 columns were read from REDCap in 0.41 seconds. Starting to read 5 records at 2014-06-27 17:19:49 Reading batch 1 of 1, with ids 1 through 5. 5 records and 16 columns were read from REDCap in 0.42 seconds.

    -

    record_id name_first name_last address telephone email 1 1 Nutmeg Nutmouse 14 Rose Cottage St.UK, 323232 (432) 456-4848 2 2 Tumtum Nutmouse 14 Rose Cottage Blvd.UK 34243 (234) 234-2343 3 3 Marcus Wood 243 Hill St.OK 73402 (433) 435-9865 4 4 Trudy DAG 342 ElmTX, 75116 (987) 654-3210 5 5 John Lee Walker Hotel SuiteOrleans LA, 70115 (333) 333-4444

    -
          dob age ethnicity race sex height weight   bmi
    -

    1 2003-08-30 10 1 2 0 5.00 1 400.0 2 2003-03-10 10 1 6 1 6.00 1 277.8 3 1934-04-09 79 0 4 1 180.00 80 24.7 4 1952-11-02 61 1 4 0 165.00 54 19.8 5 1955-04-15 58 1 4 1 193.04 104 27.9

    -
                                                                                                      comments
    -

    1 Character in a book, with some guessing 2 A mouse character from a good book 3 completely made up 4 This record doesn’t have a DAG assignedcall up Trudy on the telephoneher a letter in the mail 5 Had a hand for trouble and a eye for cashhad a gold watch chain and a black mustache

    -

    demographics_complete 1 2 2 2 3 2 4 2 5 2 ```

    +

    Is REDCapR installed on the user’s machine? Currently the easiest way to install REDCapR is with the devtools. The follow code installs devtools, then installs REDCapR.

    +
    install.packages("devtools", repos="http://cran.rstudio.com")
    +remotes::install_github(repo="OuhscBbmc/REDCapR")
    +
  5. +
  6. +

    Does REDCapR load successfully on the user’s machine? If so, running library(REDCapR) should produce the following output if you’re starting with a fresh session of R:

    + +
  7. +
  8. +

    Can the user export from an example project? This is the same fake data hosted by the OUHSC BBMC as in the previous section.

    +
    library(REDCapR) #Load the package into the current R session.
    +uri   <- "https://bbmc.ouhsc.edu/redcap/api/"
    +token <- "9A81268476645C4E5F03428B8AC3AA7B"
    +redcap_read(redcap_uri=uri, token=token)$data
    +

    The previous code should produce similar output. Notice there are five rows and the columns will wrap around if your console window is too narrow.

    +
    5 records and 1 columns were read from REDCap in 0.41 seconds.
    +Starting to read 5 records  at 2014-06-27 17:19:49
    +Reading batch 1 of 1, with ids 1 through 5.
    +5 records and 16 columns were read from REDCap in 0.42 seconds.
    +
    +  record_id name_first name_last                                 address      telephone               email
    +1         1     Nutmeg  Nutmouse 14 Rose Cottage St.\nKenning UK, 323232 (432) 456-4848     nutty@mouse.com
    +2         2     Tumtum  Nutmouse 14 Rose Cottage Blvd.\nKenning UK 34243 (234) 234-2343    tummy@mouse.comm
    +3         3     Marcus      Wood          243 Hill St.\nGuthrie OK 73402 (433) 435-9865        mw@mwood.net
    +4         4      Trudy       DAG          342 Elm\nDuncanville TX, 75116 (987) 654-3210 peroxide@blonde.com
    +5         5   John Lee    Walker      Hotel Suite\nNew Orleans LA, 70115 (333) 333-4444  left@hippocket.com
    +
    +         dob age ethnicity race sex height weight   bmi
    +1 2003-08-30  10         1    2   0   5.00      1 400.0
    +2 2003-03-10  10         1    6   1   6.00      1 277.8
    +3 1934-04-09  79         0    4   1 180.00     80  24.7
    +4 1952-11-02  61         1    4   0 165.00     54  19.8
    +5 1955-04-15  58         1    4   1 193.04    104  27.9
    +
    +                                                                                                     comments
    +1                                                                     Character in a book, with some guessing
    +2                                                                          A mouse character from a good book
    +3                                                                                          completely made up
    +4 This record doesn't have a DAG assigned\n\nSo call up Trudy on the telephone\nSend her a letter in the mail
    +5                 Had a hand for trouble and a eye for cash\n\nHe had a gold watch chain and a black mustache
    +
    +  demographics_complete
    +1                     2
    +2                     2
    +3                     2
    +4                     2
    +5                     2
  9. -

    Can the user export from their own project? The code is similar to the previous check, but the uri and token values will need to be modified. r library(REDCapR) #Load the package into the current R session, if you haven't already. redcap_uri <- "https://the.urlofyourinsitution.edu/api/" token <- "your-secret-token" redcap_read(redcap_uri=uri, token=token)$data

    -

    Alternatively, a redcap_project object can be declared initially, which makes subsequent calls cleaner when the token and url are required only the when the object is declared. ```r library(REDCapR) #Load the package into the current R session, if you haven’t already. uri <- “https://bbmc.ouhsc.edu/redcap/api/” token <- “9A81268476645C4E5F03428B8AC3AA7B” project <- redcap_project$new(redcap_uri=uri, token=token)

    -

    ds_three_columns <- project\(read(fields=c("record_id", "sex", "age"))\)data

    -

    ids_of_males <- ds_three_columns\(record_id[ds_three_columns\)sex==1] ids_of_minors <- ds_three_columns\(record_id[ds_three_columns\)age < 18]

    -

    ds_males <- project\(read(records=ids_of_males, batch_size=2)\)data ds_minors <- project\(read(records=ids_of_minors)\)data ```

    +

    Can the user export from their own project? The code is similar to the previous check, but the uri and token values will need to be modified.

    +
    library(REDCapR) #Load the package into the current R session, if you haven't already.
    +redcap_uri       <- "https://the.urlofyourinsitution.edu/api/"
    +token            <- "your-secret-token"
    +redcap_read(redcap_uri=uri, token=token)$data
    +

    Alternatively, a redcap_project object can be declared initially, which makes subsequent calls cleaner when the token and url are required only the when the object is declared.

    +
  10. Is the export operation still unsuccessful using REDCapR? If so the “Can the user query a entire REDCap project using RCurl?” check succeeded, but the REDCapR checks did not, consider posting a new GitHub issue to the package developers.

@@ -297,20 +351,63 @@

If you’re not using redcapAPI, you can skip this section and proceed to ‘Importing into REDCap from R’ below. More specific discussion about redcapAPI can be found at the package’s wiki.

  1. -

    Is redcapAPI installed on the user’s machine? Currently, the easiest way to install redcapAPI is from CRAN. r install.packages("redcapAPI")

    -

    Developmental versions may be available on GitHub. r install.packages("devtools", repos="http://cran.rstudio.com") devtools::install_github(repo="nutterb/redcapAPI")

    +

    Is redcapAPI installed on the user’s machine? Currently, the easiest way to install redcapAPI is from CRAN.

    +
    install.packages("redcapAPI")
    +

    Developmental versions may be available on GitHub.

    +
    install.packages("devtools", repos="http://cran.rstudio.com")
    +remotes::install_github(repo="nutterb/redcapAPI")
    +
  2. +
  3. +

    Does redcapAPI load successfully on the user’s machine? If so, running library(redcapAPI) should produce the following output if you’re starting with a fresh session of R:

    +
  4. -
  5. Does redcapAPI load successfully on the user’s machine? If so, running library(redcapAPI) should produce the following output if you’re starting with a fresh session of R: r library(redcapAPI) ## Loading required package: redcapAPI

  6. -

    Can the user export from an example project? This is the same fake data hosted by the OUHSC BBMC as in the previous section. r library(redcapAPI) #Load the package into the current R session. rcon <- redcapConnection( url = "https://bbmc.ouhsc.edu/redcap/api/", token = "9A81268476645C4E5F03428B8AC3AA7B" ) exportRecords(rcon)

    -

    The previous code should produce similar output. Notice there are five rows and the columns will wrap around if your console window is too narrow. ``` record_id name_first name_last address telephone email 1 1 Nutmeg Nutmouse 14 Rose Cottage St.UK, 323232 (432) 456-4848 2 2 Tumtum Nutmouse 14 Rose Cottage Blvd.UK 34243 (234) 234-2343 3 3 Marcus Wood 243 Hill St.OK 73402 (433) 435-9865 4 4 Trudy DAG 342 ElmTX, 75116 (987) 654-3210 5 5 John Lee Walker Hotel SuiteOrleans LA, 70115 (333) 333-4444

    -
        dob age ethnicity race sex height weight   bmi
    -

    1 2003-08-30 10 1 2 0 5.00 1 400.0 2 2003-03-10 10 1 6 1 6.00 1 277.8 3 1934-04-09 79 0 4 1 180.00 80 24.7 4 1952-11-02 61 1 4 0 165.00 54 19.8 5 1955-04-15 58 1 4 1 193.04 104 27.9

    -
                                                                                                    comments
    -

    1 Character in a book, with some guessing 2 A mouse character from a good book 3 completely made up 4 This record doesn’t have a DAG assignedcall up Trudy on the telephoneher a letter in the mail 5 Had a hand for trouble and a eye for cashhad a gold watch chain and a black mustache

    -

    demographics_complete 1 2 2 2 3 2 4 2 5 2 ```

    +

    Can the user export from an example project? This is the same fake data hosted by the OUHSC BBMC as in the previous section.

    + +

    The previous code should produce similar output. Notice there are five rows and the columns will wrap around if your console window is too narrow.

    +
    record_id name_first name_last                                 address      telephone               email
    +1         1     Nutmeg  Nutmouse 14 Rose Cottage St.\nKenning UK, 323232 (432) 456-4848     nutty@mouse.com
    +2         2     Tumtum  Nutmouse 14 Rose Cottage Blvd.\nKenning UK 34243 (234) 234-2343    tummy@mouse.comm
    +3         3     Marcus      Wood          243 Hill St.\nGuthrie OK 73402 (433) 435-9865        mw@mwood.net
    +4         4      Trudy       DAG          342 Elm\nDuncanville TX, 75116 (987) 654-3210 peroxide@blonde.com
    +5         5   John Lee    Walker      Hotel Suite\nNew Orleans LA, 70115 (333) 333-4444  left@hippocket.com
    +
    +       dob age ethnicity race sex height weight   bmi
    +1 2003-08-30  10         1    2   0   5.00      1 400.0
    +2 2003-03-10  10         1    6   1   6.00      1 277.8
    +3 1934-04-09  79         0    4   1 180.00     80  24.7
    +4 1952-11-02  61         1    4   0 165.00     54  19.8
    +5 1955-04-15  58         1    4   1 193.04    104  27.9
    +
    +                                                                                                   comments
    +1                                                                     Character in a book, with some guessing
    +2                                                                          A mouse character from a good book
    +3                                                                                          completely made up
    +4 This record doesn't have a DAG assigned\n\nSo call up Trudy on the telephone\nSend her a letter in the mail
    +5                 Had a hand for trouble and a eye for cash\n\nHe had a gold watch chain and a black mustache
    +
    +demographics_complete
    +1                     2
    +2                     2
    +3                     2
    +4                     2
    +5                     2
    +
  7. +
  8. +

    Can the user export from their own project? The code is similar to the previous check, but the uri and token values will need to be modified.

    +
  9. -
  10. Can the user export from their own project? The code is similar to the previous check, but the uri and token values will need to be modified. r library(redcapAPI) #Load the package into the current R session, if you haven't already. rcon <- redcapConnection( url = "https://the.urlofyourinsitution.edu/api/", # Adapt this to your server. token = "your-secret-token" # Adapt this to your user's token. ) exportRecords(rcon)

  11. Is the export operation still unsuccessful using redcapAPI? If so the “Can the user query a entire REDCap project using RCurl?” check succeeded, but the redcapAPI checks did not, consider posting a new GitHub issue to the package developers.

@@ -343,14 +440,16 @@

Other good resources

diff --git a/docs/articles/advanced-redcapr-operations.html b/docs/articles/advanced-redcapr-operations.html index ea891e37..3e2b739e 100644 --- a/docs/articles/advanced-redcapr-operations.html +++ b/docs/articles/advanced-redcapr-operations.html @@ -40,7 +40,7 @@ REDCapR - 0.9.10.9003 + 0.10.1
@@ -108,7 +108,7 @@ -
#> 18 records and 125 columns were read from REDCap in 0.6 seconds.  The http status code was 200.
+
#> 18 records and 125 columns were read from REDCap in 0.3 seconds.  The http status code was 200.
ds_long %>%
   dplyr::select(study_id, redcap_event_name, pmq1, pmq2, pmq3, pmq4)
#>    study_id        redcap_event_name pmq1 pmq2 pmq3 pmq4
@@ -252,14 +252,14 @@ 

token = token_simple, config_options = config_options )$data

-
#> 5 records and 24 columns were read from REDCap in 0.5 seconds.  The http status code was 200.
+
#> 5 records and 24 columns were read from REDCap in 0.3 seconds.  The http status code was 200.
-
#> 5 records and 24 columns were read from REDCap in 0.5 seconds.  The http status code was 200.
+
#> 5 records and 24 columns were read from REDCap in 0.2 seconds.  The http status code was 200.

@@ -275,82 +275,80 @@

#> language (EN) #> collate en_US.UTF-8 #> ctype en_US.UTF-8 -#> tz America/Denver -#> date 2019-09-20 +#> tz America/Chicago +#> date 2019-09-22 #> #> ─ Packages ────────────────────────────────────────────────────────────── -#> package * version date lib source -#> assertthat 0.2.1 2019-03-21 [2] CRAN (R 3.6.0) -#> backports 1.1.4 2019-04-10 [2] CRAN (R 3.6.0) -#> callr 3.3.1 2019-07-18 [2] CRAN (R 3.6.1) -#> checkmate 1.9.4 2019-07-04 [2] CRAN (R 3.6.0) -#> cli 1.1.0 2019-03-19 [2] CRAN (R 3.6.0) -#> colorspace 1.4-1 2019-03-18 [2] CRAN (R 3.6.0) -#> crayon 1.3.4 2017-09-16 [2] CRAN (R 3.6.0) -#> curl 4.1 2019-09-16 [2] CRAN (R 3.6.1) -#> desc 1.2.0 2018-05-01 [2] CRAN (R 3.6.0) -#> devtools 2.2.0 2019-09-07 [2] CRAN (R 3.6.1) -#> digest 0.6.20 2019-07-04 [2] CRAN (R 3.6.0) -#> dplyr 0.8.3 2019-07-04 [2] CRAN (R 3.6.0) -#> DT 0.8 2019-08-07 [2] CRAN (R 3.6.1) -#> ellipsis 0.2.0.1 2019-07-02 [2] CRAN (R 3.6.0) -#> evaluate 0.14 2019-05-28 [2] CRAN (R 3.6.0) -#> fs 1.3.1 2019-05-06 [2] CRAN (R 3.6.0) -#> glue 1.3.1 2019-03-12 [2] CRAN (R 3.6.0) -#> hms 0.5.1 2019-08-23 [2] CRAN (R 3.6.1) -#> htmltools 0.3.6 2017-04-28 [2] CRAN (R 3.6.0) -#> htmlwidgets 1.3 2018-09-30 [2] CRAN (R 3.6.0) -#> httr 1.4.1 2019-08-05 [2] CRAN (R 3.6.1) -#> kableExtra 1.1.0.9001 2019-05-18 [2] local -#> knitr * 1.24 2019-08-08 [2] CRAN (R 3.6.1) -#> lifecycle 0.1.0 2019-08-01 [2] CRAN (R 3.6.1) -#> magrittr * 1.5 2014-11-22 [2] CRAN (R 3.6.0) -#> MASS 7.3-51.4 2019-04-26 [2] CRAN (R 3.6.0) -#> memoise 1.1.0 2017-04-21 [2] CRAN (R 3.6.0) -#> munsell 0.5.0 2018-06-12 [2] CRAN (R 3.6.0) -#> pillar 1.4.2 2019-06-29 [2] CRAN (R 3.6.0) -#> pkgbuild 1.0.5 2019-08-26 [2] CRAN (R 3.6.1) -#> pkgconfig 2.0.2 2018-08-16 [2] CRAN (R 3.6.0) -#> pkgdown 1.4.1 2019-09-15 [2] CRAN (R 3.6.1) -#> pkgload 1.0.2 2018-10-29 [2] CRAN (R 3.6.0) -#> prettyunits 1.0.2 2015-07-13 [2] CRAN (R 3.6.0) -#> processx 3.4.1 2019-07-18 [2] CRAN (R 3.6.1) -#> ps 1.3.0 2018-12-21 [2] CRAN (R 3.6.0) -#> purrr 0.3.2 2019-03-15 [2] CRAN (R 3.6.0) -#> R6 2.4.0 2019-02-14 [2] CRAN (R 3.6.0) -#> Rcpp 1.0.2 2019-07-25 [2] CRAN (R 3.6.1) -#> readr 1.3.1 2018-12-21 [2] CRAN (R 3.6.0) -#> REDCapR * 0.9.10.9003 2019-09-21 [1] local -#> remotes 2.1.0 2019-06-24 [2] CRAN (R 3.6.0) -#> rlang 0.4.0 2019-06-25 [2] CRAN (R 3.6.0) -#> rmarkdown 1.15 2019-08-21 [2] CRAN (R 3.6.1) -#> rprojroot 1.3-2 2018-01-03 [2] CRAN (R 3.6.0) -#> rstudioapi 0.10 2019-03-19 [2] CRAN (R 3.6.0) -#> rvest 0.3.4 2019-05-15 [2] CRAN (R 3.6.0) -#> scales 1.0.0 2018-08-09 [2] CRAN (R 3.6.0) -#> sessioninfo 1.1.1 2018-11-05 [2] CRAN (R 3.6.0) -#> stringi 1.4.3 2019-03-12 [2] CRAN (R 3.6.0) -#> stringr 1.4.0 2019-02-10 [2] CRAN (R 3.6.0) -#> testthat 2.2.1 2019-07-25 [2] CRAN (R 3.6.1) -#> tibble 2.1.3 2019-06-06 [2] CRAN (R 3.6.0) -#> tidyr 1.0.0 2019-09-11 [2] CRAN (R 3.6.1) -#> tidyselect 0.2.5 2018-10-11 [2] CRAN (R 3.6.0) -#> usethis 1.5.1 2019-07-04 [2] CRAN (R 3.6.0) -#> vctrs 0.2.0 2019-07-05 [2] CRAN (R 3.6.0) -#> viridisLite 0.3.0 2018-02-01 [2] CRAN (R 3.6.0) -#> webshot 0.5.1 2018-09-28 [2] CRAN (R 3.6.0) -#> withr 2.1.2 2018-03-15 [2] CRAN (R 3.6.0) -#> xfun 0.9 2019-08-21 [2] CRAN (R 3.6.1) -#> xml2 1.2.2 2019-08-09 [2] CRAN (R 3.6.1) -#> yaml 2.2.0 2018-07-25 [2] CRAN (R 3.6.0) -#> zeallot 0.1.0 2018-01-28 [2] CRAN (R 3.6.0) +#> package * version date lib source +#> assertthat 0.2.1 2019-03-21 [2] CRAN (R 3.6.0) +#> backports 1.1.4 2019-04-10 [2] CRAN (R 3.6.0) +#> callr 3.3.1 2019-07-18 [2] CRAN (R 3.6.1) +#> checkmate 1.9.4 2019-07-04 [2] CRAN (R 3.6.0) +#> cli 1.1.0 2019-03-19 [2] CRAN (R 3.6.0) +#> colorspace 1.4-1 2019-03-18 [2] CRAN (R 3.6.0) +#> crayon 1.3.4 2017-09-16 [2] CRAN (R 3.6.0) +#> curl 4.1 2019-09-16 [2] CRAN (R 3.6.1) +#> desc 1.2.0 2018-05-01 [2] CRAN (R 3.6.0) +#> devtools 2.2.0.9000 2019-09-21 [2] Github (r-lib/devtools@2765fbe) +#> digest 0.6.21 2019-09-20 [2] CRAN (R 3.6.1) +#> dplyr 0.8.3 2019-07-04 [2] CRAN (R 3.6.0) +#> ellipsis 0.3.0 2019-09-20 [2] CRAN (R 3.6.1) +#> evaluate 0.14 2019-05-28 [2] CRAN (R 3.6.0) +#> fs 1.3.1 2019-05-06 [2] CRAN (R 3.6.0) +#> glue 1.3.1 2019-03-12 [2] CRAN (R 3.6.0) +#> hms 0.5.1 2019-08-23 [2] CRAN (R 3.6.1) +#> htmltools 0.3.6 2017-04-28 [2] CRAN (R 3.6.0) +#> httr 1.4.1 2019-08-05 [2] CRAN (R 3.6.1) +#> kableExtra 1.1.0.9001 2019-05-18 [2] local +#> knitr * 1.25 2019-09-18 [2] CRAN (R 3.6.1) +#> lifecycle 0.1.0 2019-08-01 [2] CRAN (R 3.6.1) +#> magrittr * 1.5 2014-11-22 [2] CRAN (R 3.6.0) +#> MASS 7.3-51.4 2019-04-26 [2] CRAN (R 3.6.0) +#> memoise 1.1.0 2017-04-21 [2] CRAN (R 3.6.0) +#> munsell 0.5.0 2018-06-12 [2] CRAN (R 3.6.0) +#> pillar 1.4.2 2019-06-29 [2] CRAN (R 3.6.0) +#> pkgbuild 1.0.5 2019-08-26 [2] CRAN (R 3.6.1) +#> pkgconfig 2.0.2 2018-08-16 [2] CRAN (R 3.6.0) +#> pkgdown 1.4.1 2019-09-15 [2] CRAN (R 3.6.1) +#> pkgload 1.0.2 2018-10-29 [2] CRAN (R 3.6.0) +#> prettyunits 1.0.2 2015-07-13 [2] CRAN (R 3.6.0) +#> processx 3.4.1 2019-07-18 [2] CRAN (R 3.6.1) +#> ps 1.3.0 2018-12-21 [2] CRAN (R 3.6.0) +#> purrr 0.3.2 2019-03-15 [2] CRAN (R 3.6.0) +#> R6 2.4.0 2019-02-14 [2] CRAN (R 3.6.0) +#> Rcpp 1.0.2 2019-07-25 [2] CRAN (R 3.6.1) +#> readr 1.3.1 2018-12-21 [2] CRAN (R 3.6.0) +#> REDCapR * 0.10.1 2019-09-22 [1] local +#> remotes 2.1.0 2019-06-24 [2] CRAN (R 3.6.0) +#> rlang 0.4.0 2019-06-25 [2] CRAN (R 3.6.0) +#> rmarkdown 1.15 2019-08-21 [2] CRAN (R 3.6.1) +#> rprojroot 1.3-2 2018-01-03 [2] CRAN (R 3.6.0) +#> rstudioapi 0.10 2019-03-19 [2] CRAN (R 3.6.0) +#> rvest 0.3.4 2019-05-15 [2] CRAN (R 3.6.0) +#> scales 1.0.0 2018-08-09 [2] CRAN (R 3.6.0) +#> sessioninfo 1.1.1 2018-11-05 [2] CRAN (R 3.6.0) +#> stringi 1.4.3 2019-03-12 [2] CRAN (R 3.6.0) +#> stringr 1.4.0 2019-02-10 [2] CRAN (R 3.6.0) +#> testthat 2.2.1 2019-07-25 [2] CRAN (R 3.6.1) +#> tibble 2.1.3 2019-06-06 [2] CRAN (R 3.6.0) +#> tidyr 1.0.0 2019-09-11 [2] CRAN (R 3.6.1) +#> tidyselect 0.2.5 2018-10-11 [2] CRAN (R 3.6.0) +#> usethis 1.5.1 2019-07-04 [2] CRAN (R 3.6.0) +#> vctrs 0.2.0 2019-07-05 [2] CRAN (R 3.6.0) +#> viridisLite 0.3.0 2018-02-01 [2] CRAN (R 3.6.0) +#> webshot 0.5.1 2018-09-28 [2] CRAN (R 3.6.0) +#> withr 2.1.2 2018-03-15 [2] CRAN (R 3.6.0) +#> xfun 0.9 2019-08-21 [2] CRAN (R 3.6.1) +#> xml2 1.2.2 2019-08-09 [2] CRAN (R 3.6.1) +#> yaml 2.2.0 2018-07-25 [2] CRAN (R 3.6.0) +#> zeallot 0.1.0 2018-01-28 [2] CRAN (R 3.6.0) #> -#> [1] /tmp/RtmpdqBkOl/temp_libpath4e0f587a791c +#> [1] /tmp/RtmpsgrWgH/temp_libpath740257cb29b9 #> [2] /home/wibeasley/R/x86_64-pc-linux-gnu-library/3.6 #> [3] /usr/local/lib/R/site-library #> [4] /usr/lib/R/site-library #> [5] /usr/lib/R/library -

Report rendered by wibeasley at 2019-09-20, 18:17 -0600 in 5 seconds.

+

Report rendered by wibeasley at 2019-09-22, 15:37 -0500 in 4 seconds.

diff --git a/docs/articles/index.html b/docs/articles/index.html index 949f2d2a..31d6f053 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -82,7 +82,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 diff --git a/docs/authors.html b/docs/authors.html index 6db4fc32..cc13dae3 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -82,7 +82,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 diff --git a/docs/favicon-16x16.png b/docs/favicon-16x16.png deleted file mode 100644 index 20d59577..00000000 Binary files a/docs/favicon-16x16.png and /dev/null differ diff --git a/docs/favicon-32x32.png b/docs/favicon-32x32.png deleted file mode 100644 index 02f147c0..00000000 Binary files a/docs/favicon-32x32.png and /dev/null differ diff --git a/docs/favicon.ico b/docs/favicon.ico deleted file mode 100644 index d334a299..00000000 Binary files a/docs/favicon.ico and /dev/null differ diff --git a/docs/index.html b/docs/index.html index aedf4c3a..e3abca39 100644 --- a/docs/index.html +++ b/docs/index.html @@ -45,7 +45,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 @@ -114,7 +114,7 @@ -

We’ve been using R with REDCap’s API since 2012 and have developed REDCapR. Before encapsulating these functions in a package, we were replicating 50+ lines of code to contact REDCap and robustly transform the returned csv into an R data.frame; it took twice that much to implement batching. All this can be done in one call to redcap_read():

+

We’ve been using R with REDCap’s API since 2012 and have developed REDCapR. Before encapsulating these functions in a package, we were replicating 50+ lines of code to contact REDCap and robustly transform the returned csv into an R data.frame; it took twice that much to implement batching. All this can be done in one call to redcap_read():

ds <- redcap_read(redcap_uri=uri, token=token)$data

The redcap_read() function also accepts values for subsetting/filtering the records and fields. Here are two examples; the first selects only a portion of the rows, while the second selects only a portion of the columns. Documentation for the additional 20+ functions are found at ouhscbbmc.github.io/REDCapR/reference.

# Return only records with IDs of 1 and 4
@@ -148,7 +148,7 @@ 

Collaborative Development

-

We encourage input and collaboration. If you’re familiar with GitHub and R packages, feel free to submit a pull request. If you’d like to report a bug or make a suggestion, please create a GitHub issue; issues are a usually a good place to ask public questions too. However, feel free to email Will (). Please note that this project is released with a Contributor Code of Conduct; by participating in this project you agree to abide by its terms. We have some starting material described in the ./documentation-for-developers/ directory.

+

We encourage input and collaboration. If you’re familiar with GitHub and R packages, feel free to submit a pull request. If you’d like to report a bug or make a suggestion, please create a GitHub issue; issues are a usually a good place to ask public questions too. However, feel free to email Will (). Please note that this project is released with a Contributor Code of Conduct; by participating in this project you agree to abide by its terms. We have some starting material described in the ./documentation-for-developers/ directory.

We’d like to thank the following developers for their advice and code contributions: Benjamin Nutter, Rollie Parrish, Scott Burns, John Aponte, Andrew Peters, and Hao Zhu.

diff --git a/docs/news/index.html b/docs/news/index.html index f85771cc..9820f475 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -82,7 +82,7 @@ REDCapR - 0.9.10.9003 + 0.10.1
@@ -152,9 +152,9 @@

Changelog

Source: NEWS.md
-
+

-Version 0.10 (to be released) Unreleased +Version 0.10 (Released 2019-09-22) Unreleased

@@ -460,7 +460,7 @@

Contents

diff --git a/docs/reference/collapse_vector.html b/docs/reference/collapse_vector.html index 613e74d3..583f6456 100644 --- a/docs/reference/collapse_vector.html +++ b/docs/reference/collapse_vector.html @@ -85,7 +85,7 @@ REDCapR - 0.9.10.9003 + 0.10.1

diff --git a/docs/reference/constant.html b/docs/reference/constant.html index e2652a5d..62d0b6d8 100644 --- a/docs/reference/constant.html +++ b/docs/reference/constant.html @@ -83,7 +83,7 @@ REDCapR - 0.9.10.9003 + 0.10.1
diff --git a/docs/reference/create_batch_glossary.html b/docs/reference/create_batch_glossary.html index 0c5cf3f6..37e2d5f1 100644 --- a/docs/reference/create_batch_glossary.html +++ b/docs/reference/create_batch_glossary.html @@ -85,7 +85,7 @@ REDCapR - 0.9.10.9003 + 0.10.1
diff --git a/docs/reference/index.html b/docs/reference/index.html index df875415..ab228d78 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -82,7 +82,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 diff --git a/docs/reference/kernel_api.html b/docs/reference/kernel_api.html index db7e3d7c..9d8c3849 100644 --- a/docs/reference/kernel_api.html +++ b/docs/reference/kernel_api.html @@ -83,7 +83,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 @@ -199,7 +199,7 @@

Examp # Consume the results in a few different ways. kernel$result
#> Response [https://bbmc.ouhsc.edu/redcap/api/] -#> Date: 2019-09-21 00:15 +#> Date: 2019-09-22 20:35 #> Status: 200 #> Content-Type: text/csv; charset=utf-8 #> Size: 557 B diff --git a/docs/reference/metadata_utilities.html b/docs/reference/metadata_utilities.html index 7ac14999..4a664e5b 100644 --- a/docs/reference/metadata_utilities.html +++ b/docs/reference/metadata_utilities.html @@ -83,7 +83,7 @@ REDCapR - 0.9.10.9003 + 0.10.1
diff --git a/docs/reference/redcap_column_sanitize.html b/docs/reference/redcap_column_sanitize.html index 5b3a29d6..90e7437a 100644 --- a/docs/reference/redcap_column_sanitize.html +++ b/docs/reference/redcap_column_sanitize.html @@ -83,7 +83,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 diff --git a/docs/reference/redcap_download_file_oneshot.html b/docs/reference/redcap_download_file_oneshot.html index 8d12259d..cd453419 100644 --- a/docs/reference/redcap_download_file_oneshot.html +++ b/docs/reference/redcap_download_file_oneshot.html @@ -83,7 +83,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 diff --git a/docs/reference/redcap_metadata_read.html b/docs/reference/redcap_metadata_read.html index 67865182..8363ccb0 100644 --- a/docs/reference/redcap_metadata_read.html +++ b/docs/reference/redcap_metadata_read.html @@ -85,7 +85,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 diff --git a/docs/reference/redcap_next_free_record_name.html b/docs/reference/redcap_next_free_record_name.html index c846e73d..7412ce6a 100644 --- a/docs/reference/redcap_next_free_record_name.html +++ b/docs/reference/redcap_next_free_record_name.html @@ -83,7 +83,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 @@ -200,7 +200,7 @@

Note

Examples

uri <- "https://bbmc.ouhsc.edu/redcap/api/" token <- "9A81268476645C4E5F03428B8AC3AA7B" -REDCapR::redcap_next_free_record_name(redcap_uri=uri, token=token) # Should return "6"
#> The next free record name in REDCap was successfully determined in 0.8 seconds. The http status code was 200. It is 6.
#> [1] "6"
+REDCapR::redcap_next_free_record_name(redcap_uri=uri, token=token) # Should return "6"
#> The next free record name in REDCap was successfully determined in 0.3 seconds. The http status code was 200. It is 6.
#> [1] "6"
diff --git a/docs/reference/redcap_read.html b/docs/reference/redcap_read.html index ba20b119..79e3f8d6 100644 --- a/docs/reference/redcap_read.html +++ b/docs/reference/redcap_read.html @@ -86,7 +86,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 diff --git a/docs/reference/redcap_read_oneshot.html b/docs/reference/redcap_read_oneshot.html index 2d6992c1..9060fe96 100644 --- a/docs/reference/redcap_read_oneshot.html +++ b/docs/reference/redcap_read_oneshot.html @@ -83,7 +83,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 diff --git a/docs/reference/redcap_read_oneshot_eav.html b/docs/reference/redcap_read_oneshot_eav.html index 5753e03f..4e3b499d 100644 --- a/docs/reference/redcap_read_oneshot_eav.html +++ b/docs/reference/redcap_read_oneshot_eav.html @@ -83,7 +83,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 diff --git a/docs/reference/redcap_upload_file_oneshot.html b/docs/reference/redcap_upload_file_oneshot.html index 7204c6e5..1fdfa384 100644 --- a/docs/reference/redcap_upload_file_oneshot.html +++ b/docs/reference/redcap_upload_file_oneshot.html @@ -83,7 +83,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 diff --git a/docs/reference/redcap_users_export.html b/docs/reference/redcap_users_export.html index 53d9c29c..e72cbc61 100644 --- a/docs/reference/redcap_users_export.html +++ b/docs/reference/redcap_users_export.html @@ -83,7 +83,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 @@ -196,7 +196,7 @@

Note

Examples

uri <- "https://bbmc.ouhsc.edu/redcap/api/" token <- "06DEFB601F9B46847DAA9DF0CFA951B4" -result <- REDCapR::redcap_users_export(redcap_uri=uri, token=token)
#> The REDCap users were successfully exported in 0.6 seconds. The http status code was 200.
result$data_user
#> # A tibble: 2 x 31 +result <- REDCapR::redcap_users_export(redcap_uri=uri, token=token)
#> The REDCap users were successfully exported in 0.2 seconds. The http status code was 200.
result$data_user
#> # A tibble: 2 x 31 #> username email firstname lastname expiration data_access_gro… data_access_gro… #> <chr> <chr> <chr> <chr> <date> <chr> <chr> #> 1 unittes… wibe… Unit Test PHI Free NA daga 331 diff --git a/docs/reference/redcap_variables.html b/docs/reference/redcap_variables.html index a18e15be..5156abc6 100644 --- a/docs/reference/redcap_variables.html +++ b/docs/reference/redcap_variables.html @@ -83,7 +83,7 @@ REDCapR - 0.9.10.9003 + 0.10.1
diff --git a/docs/reference/redcap_version.html b/docs/reference/redcap_version.html index a20bd94a..c8a95dd2 100644 --- a/docs/reference/redcap_version.html +++ b/docs/reference/redcap_version.html @@ -83,7 +83,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 @@ -194,7 +194,7 @@

Details

Examples

uri <- "https://bbmc.ouhsc.edu/redcap/api/" token <- "9A81268476645C4E5F03428B8AC3AA7B" -REDCapR::redcap_version(redcap_uri=uri, token=token)
#> The REDCap version was successfully determined in 0.6 seconds. The http status code was 200. It is 9.0.0.
#> [1] ‘9.0.0’
+REDCapR::redcap_version(redcap_uri=uri, token=token)
#> The REDCap version was successfully determined in 0.2 seconds. The http status code was 200. It is 9.0.0.
#> [1] ‘9.0.0’
diff --git a/docs/reference/redcap_write_oneshot.html b/docs/reference/redcap_write_oneshot.html index 2f868fcb..42ff6581 100644 --- a/docs/reference/redcap_write_oneshot.html +++ b/docs/reference/redcap_write_oneshot.html @@ -83,7 +83,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 diff --git a/docs/reference/replace_nas_with_explicit.html b/docs/reference/replace_nas_with_explicit.html index f322c42f..3e97c114 100644 --- a/docs/reference/replace_nas_with_explicit.html +++ b/docs/reference/replace_nas_with_explicit.html @@ -85,7 +85,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 diff --git a/docs/reference/retrieve_credential.html b/docs/reference/retrieve_credential.html index 5df6a4db..9d9502c8 100644 --- a/docs/reference/retrieve_credential.html +++ b/docs/reference/retrieve_credential.html @@ -83,7 +83,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 diff --git a/docs/reference/sanitize_token.html b/docs/reference/sanitize_token.html index a4b40a02..026c5d24 100644 --- a/docs/reference/sanitize_token.html +++ b/docs/reference/sanitize_token.html @@ -84,7 +84,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 diff --git a/docs/reference/validate.html b/docs/reference/validate.html index 91d71218..bfe011eb 100644 --- a/docs/reference/validate.html +++ b/docs/reference/validate.html @@ -83,7 +83,7 @@ REDCapR - 0.9.10.9003 + 0.10.1 diff --git a/utility/refresh.R b/utility/refresh.R index 368bd6e0..7ea78e3d 100644 --- a/utility/refresh.R +++ b/utility/refresh.R @@ -22,5 +22,5 @@ test_results_not_checked <- testthat::test_dir("./tests/manual/") devtools::check(cran=T) # devtools::check_rhub(email="wibeasley@hotmail.com") # devtools::check_win_devel() # CRAN submission policies encourage the development version -# devtools::revdep_check(pkg="REDCapR", recursive=TRUE) +# devtools::revdepcheck(recursive=TRUE) # devtools::release(check=FALSE) #Careful, the last question ultimately uploads it to CRAN, where you can't delete/reverse your decision. diff --git a/vignettes/TroubleshootingApiCalls.Rmd b/vignettes/TroubleshootingApiCalls.Rmd index 8ebfea3e..b173d44f 100644 --- a/vignettes/TroubleshootingApiCalls.Rmd +++ b/vignettes/TroubleshootingApiCalls.Rmd @@ -74,6 +74,7 @@ This section group examines potential problems that occur after it leaves a work 1. **Can an user query the API successfully with Postman with the their own token?** The values they enter should be exactly the same as those entered in the previous step. A failure here (assuming the previous step was successful) suggests a network or firewall issue. If the server is behind your institution's firewall, verify the user is connecting successfully through the VPN. 1. **Can a user query the API with cURL?** [cURL](http://curl.haxx.se/docs/manpage.html) is a command line tool that's underneath a lot of libraries. If it's installed correctly on your location machine, it can be executed from the terminal or command line. + ```shell curl -X POST -H "Cache-Control: no-cache" -F "token=9A81268476645C4E5F03428B8AC3AA7B" -F "content=record" -F "format=csv" "https://bbmc.ouhsc.edu/redcap/api/" ``` @@ -189,18 +190,21 @@ Exporting from REDCap to R, using REDCapR If you're not using REDCapR, you can skip this section and proceed to 'Importing into REDCap from R' below. 1. **Is REDCapR installed on the user's machine?** Currently the easiest way to install REDCapR is with the [devtools](https://github.com/hadley/devtools). The follow code installs devtools, then installs REDCapR. + ```r install.packages("devtools", repos="http://cran.rstudio.com") - devtools::install_github(repo="OuhscBbmc/REDCapR") + remotes::install_github(repo="OuhscBbmc/REDCapR") ``` 1. **Does REDCapR load successfully on the user's machine?** If so, running `library(REDCapR)` should produce the following output if you're starting with a fresh session of R: + ```r library(REDCapR) ## Loading required package: REDCapR ``` 1. **Can the user export from an example project?** This is the same fake data hosted by the [OUHSC BBMC](http://ouhsc.edu/bbmc/) as in the previous section. + ```r library(REDCapR) #Load the package into the current R session. uri <- "https://bbmc.ouhsc.edu/redcap/api/" @@ -209,6 +213,7 @@ If you're not using REDCapR, you can skip this section and proceed to 'Importing ``` The previous code should produce similar output. Notice there are five rows and the columns will wrap around if your console window is too narrow. + ``` 5 records and 1 columns were read from REDCap in 0.41 seconds. Starting to read 5 records at 2014-06-27 17:19:49 @@ -245,6 +250,7 @@ If you're not using REDCapR, you can skip this section and proceed to 'Importing ``` 1. **Can the user export from their own project?** The code is similar to the previous check, but the `uri` and `token` values will need to be modified. + ```r library(REDCapR) #Load the package into the current R session, if you haven't already. redcap_uri <- "https://the.urlofyourinsitution.edu/api/" @@ -253,6 +259,7 @@ If you're not using REDCapR, you can skip this section and proceed to 'Importing ``` Alternatively, a `redcap_project` object can be declared initially, which makes subsequent calls cleaner when the token and url are required only the when the object is declared. + ```r library(REDCapR) #Load the package into the current R session, if you haven't already. uri <- "https://bbmc.ouhsc.edu/redcap/api/" @@ -279,23 +286,27 @@ Exporting from REDCap to R, using redcapAPI If you're not using redcapAPI, you can skip this section and proceed to 'Importing into REDCap from R' below. More specific discussion about `redcapAPI` can be found at the [package's wiki](https://github.com/nutterb/redcapAPI/wiki). 1. **Is redcapAPI installed on the user's machine?** Currently, the easiest way to install `redcapAPI` is from CRAN. + ```r install.packages("redcapAPI") ``` Developmental versions may be available on GitHub. + ```r install.packages("devtools", repos="http://cran.rstudio.com") - devtools::install_github(repo="nutterb/redcapAPI") + remotes::install_github(repo="nutterb/redcapAPI") ``` 1. **Does redcapAPI load successfully on the user's machine?** If so, running `library(redcapAPI)` should produce the following output if you're starting with a fresh session of R: + ```r library(redcapAPI) ## Loading required package: redcapAPI ``` 1. **Can the user export from an example project?** This is the same fake data hosted by the [OUHSC BBMC](http://ouhsc.edu/bbmc/) as in the previous section. + ```r library(redcapAPI) #Load the package into the current R session. rcon <- redcapConnection( @@ -306,6 +317,7 @@ If you're not using redcapAPI, you can skip this section and proceed to 'Importi ``` The previous code should produce similar output. Notice there are five rows and the columns will wrap around if your console window is too narrow. + ``` record_id name_first name_last address telephone email 1 1 Nutmeg Nutmouse 14 Rose Cottage St.\nKenning UK, 323232 (432) 456-4848 nutty@mouse.com @@ -337,6 +349,7 @@ If you're not using redcapAPI, you can skip this section and proceed to 'Importi ``` 1. **Can the user export from their own project?** The code is similar to the previous check, but the `uri` and `token` values will need to be modified. + ``` r library(redcapAPI) #Load the package into the current R session, if you haven't already. rcon <- redcapConnection( @@ -380,9 +393,11 @@ Other good resources ------------------------------------------------------------------ * The basic API documentation is available on your REDCap server, typically at + ``` http://<*your server name*>/redcap/api/help ``` + * If you have access to the REDCap wiki, some newer examples might exist at . The official documentation can be found on the `API Help Page` and `API Examples' pages on the REDCap wiki (*i.e.*, and ). If you do not have an account for the wiki, please ask your campus REDCap administrator to send you the static material. * Scott Burns, the primary developer of [PyCap](https://github.com/redcap-tools/PyCap) has a good intro at http://sburns.org/2013/07/22/intro-to-redcap-api.html * Benjamin Nutter, the primary developer of [redcapAPI](https://github.com/nutterb/redcapAPI/wiki) has a good wiki at https://github.com/nutterb/redcapAPI/wiki diff --git a/vignettes/styles.css b/vignettes/styles.css deleted file mode 100644 index a204b4f5..00000000 --- a/vignettes/styles.css +++ /dev/null @@ -1,8 +0,0 @@ -#nextsteps { - color: blue; -} - -.emphasized { - font-size: 1.2em; -} -