Skip to content

Commit ddf79df

Browse files
committed
Update data_operations.R
Use keyring to pass the API key to get_data().
1 parent 5f02b31 commit ddf79df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_operations.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ library(REDCapR)
44

55
#### Functions
66

7-
get_data <- function(token = Sys.getenv("REDCAP_API_TOKEN")) {
7+
get_data <- function(token = keyring::key_get("aps_reports_redcap_api")) {
88
redcap_read(
99
redcap_uri = "https://redcap.uth.tmc.edu/api/",
1010
token = token,

0 commit comments

Comments
 (0)