-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor custom function execution (#150)
* refactor get_caller_env_formals - make DRY code - add roxygen skeleton - split logical vectors into separate variables - insert explanatory comments * refactor exec_cfg_check() - add sentinel boolean variables - add roxygen skeleton - insert explanatory comments - unwrap calls that don't need to be wrapped * add catch for malformed config file * add explainer for caller vars * unnest missing file check; add class to error * unnest unspecified config file check and simplify logic * add explanatory comments * add tests for errors in custom configs * appeas lintr * DIAF lintr * Apply suggestions from code review Co-authored-by: Anna Krystalli <[email protected]> --------- Co-authored-by: Anna Krystalli <[email protected]>
- Loading branch information
1 parent
d832175
commit 61107a9
Showing
4 changed files
with
111 additions
and
25 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
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,8 @@ | ||
default: | ||
test_custom_checks_caller: | ||
horizon_timediff: | ||
fn: "opt_check_tbl_horizon_timediff" | ||
# bad config contains no pkg or source | ||
args: | ||
t0_colname: "forecast_date" | ||
t1_colname: "target_end_date" |