-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
credentials storing fixed and documentation update
- Loading branch information
Showing
16 changed files
with
82 additions
and
874 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
cfgUser = '[email protected]' | ||
cfgPswd = 'test' | ||
|
||
#' Set login credentials for 's2.boku.eodc.eu' | ||
#' | ||
#' Set 'user' and 'password' login credentials for the current | ||
|
@@ -15,13 +12,22 @@ cfgPswd = 'test' | |
#' 'https://s2.boku.eodc.eu' | ||
#' @param password character password for 'https://s2.boku.eodc.eu' | ||
#' @export | ||
S2_initialize_user = function(user, password, permanent = TRUE) { | ||
cfgUser <<- user | ||
cfgPswd <<- password | ||
S2_initialize_user = function(user, password) { | ||
assign('cfgUser', user, parent.env(environment())) | ||
assign('cfgPswd', password, parent.env(environment())) | ||
} | ||
|
||
#' Internal function getting user credentials | ||
#' | ||
get_credentials = function() { | ||
return(c(user = cfgUser, password = cfgPswd)) | ||
try( | ||
{ | ||
return(c( | ||
user = get('cfgUser', parent.env(environment())), | ||
password = get('cfgPswd', parent.env(environment())) | ||
)) | ||
}, | ||
silent = TRUE | ||
) | ||
return(c(user = '[email protected]', password = 'test')) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.