-
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.
* changed global access of object in reload * pre-commit autofixes * included reload funciton instead of method * added namespace * updated changelog and bumped version --------- Co-authored-by: Tom Schwarzl <[email protected]> Co-authored-by: DSchreyer <[email protected]>
- Loading branch information
1 parent
a10afdf
commit 1ccb35e
Showing
8 changed files
with
68 additions
and
75 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,7 +1,7 @@ | ||
Package: dso | ||
Type: Package | ||
Title: dso R companion package | ||
Version: 0.5.0 | ||
Version: 0.5.1 | ||
Author: Daniel Schreyer<[email protected]>, | ||
Gregor Sturm<[email protected]>, | ||
Thomas Schwarzl<[email protected]> | ||
|
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
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.