Skip to content

Commit

Permalink
Merge branch 'release/3.10.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
psychelzh committed Mar 29, 2024
2 parents 20df7b7 + 4b9c71b commit 3f68379
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: tarflow.iquizoo
Title: Setup "targets" Workflows for "iquizoo" Data Processing
Version: 3.10.0
Version: 3.10.1
Authors@R: c(
person("Liang", "Zhang", , "psychelzh@outlook.com", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-9041-1150")),
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# tarflow.iquizoo 3.10.1

## New Features

* Added `"preproc"` option in `action_raw_data` argument of `tar_prep_raw()`.

# tarflow.iquizoo 3.10.0

## Breaking Changes
Expand Down
8 changes: 5 additions & 3 deletions R/targets.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ tar_prep_iquizoo <- function(params, ...,
simplify = FALSE
),
if ("raw_data" %in% what && action_raw_data != "none") {
if (action_raw_data == "all") {
action_raw_data <- c("parse", "preproc")
}
tar_prep_raw(contents, action_raw_data)
}
)
Expand Down Expand Up @@ -226,12 +229,11 @@ tar_fetch_data <- function(contents,
#' @return A list of target objects.
#' @export
tar_prep_raw <- function(contents,
action_raw_data = c("all", "parse", "none"),
action_raw_data = c("parse", "preproc"),
name_data = "raw_data",
name_parsed = "raw_data_parsed",
name_indices = "indices") {
action_raw_data <- match.arg(action_raw_data)
if (action_raw_data == "all") action_raw_data <- c("parse", "preproc")
action_raw_data <- match.arg(action_raw_data, several.ok = TRUE)
contents <- unique(contents["game_id"])
contents$tar_data <- syms(sprintf("%s_%s", name_data, contents$game_id))
contents$tar_parsed <- syms(sprintf("%s_%s", name_parsed, contents$game_id))
Expand Down
2 changes: 1 addition & 1 deletion man/tar_prep_raw.Rd

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

0 comments on commit 3f68379

Please sign in to comment.