Skip to content

Commit

Permalink
omg APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
vortexing committed Apr 20, 2020
1 parent d33e796 commit 782af96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/setCreds.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ setCreds <- function(path, tokenSet="file") {
Sys.setenv(AWS_ACCESS_KEY_ID= Sys.getenv("S3A"),
AWS_SECRET_ACCESS_KEY = Sys.getenv("S3SA"))
}
Sys.setenv(REDURI="https://redcap.fredhutch.org/api")
Sys.setenv(REDURI="https://redcap.fredhutch.org/API/")
if ("" %in% Sys.getenv(c("REDURI", "TGR", "AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_DEFAULT_REGION"))) {
stop("You have missing environment variables. Please set env vars.")} else message("Credentials set successfully.")
}

0 comments on commit 782af96

Please sign in to comment.