-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
included reload funciton instead of method
- Loading branch information
Showing
5 changed files
with
28 additions
and
51 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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#' @title Reload dsoParams | ||
#' @description | ||
#' Reloads the current dsoParams configuration into the object. | ||
#' | ||
#' @param params dsoParams object | ||
#' @param env environment in which object is located, caller_env() by default | ||
#' @return The updated dsoParams object. | ||
#' @export | ||
reload <- function(params, env = caller_env()) { | ||
if (!inherits(params, "dsoParams")) { | ||
stop("The object is not of class 'dsoParams'") | ||
} | ||
var_name <- deparse(substitute(params)) | ||
assign(var_name, value = read_params(), envir = env) | ||
|
||
invisible(get(var_name, envir = env)) | ||
} |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.