Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove default force_array for parse_raw_params #38

Merged
merged 5 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: pacta.workflow.utils
Title: Utility functions for PACTA workflows
Version: 0.0.0.9015
Version: 0.0.0.9016
Authors@R:
c(person(given = "Alex",
family = "Axthelm",
Expand Down
7 changes: 5 additions & 2 deletions R/parse_raw_params.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#' `parse_params` for details.
#' @param raw_schema_file JSON Schema file to validate raw parameters against.
#' See `jsonvalidate::json_validate` for details.
#' @param force_array Path in params list to force casting as JSON array.
#' Passed to `parse_params` argument `force_array`. (Default empty)
#' @return list of parameters
#' @examples
# nolint start
Expand Down Expand Up @@ -102,7 +104,8 @@ parse_raw_params <- function(
json,
inheritence_search_paths = NULL,
schema_file = NULL,
raw_schema_file = NULL
raw_schema_file = NULL,
force_array = list()
) {
# Read Params
log_debug("Processing input parameters.")
Expand Down Expand Up @@ -146,7 +149,7 @@ parse_raw_params <- function(
json = json,
inheritence_search_paths = inheritence_search_paths,
schema_file = schema_file,
force_array = c("portfolio", "files")
force_array = force_array
)

return(params)
Expand Down
6 changes: 5 additions & 1 deletion man/parse_raw_params.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading