diff --git a/404.html b/404.html index 89dfa56..d13dd37 100644 --- a/404.html +++ b/404.html @@ -24,7 +24,7 @@ redcapcustodian - 1.19.0 + 1.20.0 + + + + + +
+
+
+ +
+

Fetches REDCap credentials from the CREDENTIALS_DB, allowing filtering based on +project ID, server short name, project short name, and username. At least one filtering +criterion must be provided.

+
+ +
+

Usage

+
get_redcap_credentials(
+  project_pid = NA,
+  server_short_name = NA,
+  project_short_name = NA,
+  username = NA
+)
+
+ +
+

Arguments

+
project_pid
+

Optional project ID for filtering.

+ + +
server_short_name
+

Optional server short name for filtering.

+ + +
project_short_name
+

Optional project short name for filtering.

+ + +
username
+

Optional username for filtering.

+ +
+
+

Value

+ + +

A dataframe of filtered REDCap credentials, including a 'url' column added for convenience.

+
+ +
+

Examples

+
if (FALSE) {
+  source_credentials <- get_redcap_credentials(project_pid = "123")
+  prod_credentials <- get_redcap_credentials(server_short_name = "prod")
+  target_credentials <- prod_credentials |>
+    filter(str_detect(project_name, "biospecimens"))
+}
+
+
+
+
+ + +
+ + + + + + + diff --git a/reference/get_redcap_db_connection.html b/reference/get_redcap_db_connection.html index 47214f2..20642c3 100644 --- a/reference/get_redcap_db_connection.html +++ b/reference/get_redcap_db_connection.html @@ -10,7 +10,7 @@ redcapcustodian - 1.19.0 + 1.20.0