diff --git a/DESCRIPTION b/DESCRIPTION index 223f94e..a994dd7 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: tarflow.iquizoo Title: Setup "targets" Workflows for "iquizoo" Data Processing -Version: 3.11.1 +Version: 3.11.2 Authors@R: c( person("Liang", "Zhang", , "psychelzh@outlook.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-9041-1150")), diff --git a/NEWS.md b/NEWS.md index 1190934..daba633 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +# tarflow.iquizoo 3.11.2 + +* Fixed a regression issue of `tar_prep_raw()` that `preproc_data()` is not correctly tracked by targets pipeline. + # tarflow.iquizoo 3.11.1 * Separate `tar_prep_proj()` into `tar_prep_hash()` and `tar_fetch_users()`. diff --git a/R/targets.R b/R/targets.R index 63a713a..7c4c8c6 100644 --- a/R/targets.R +++ b/R/targets.R @@ -261,12 +261,7 @@ tar_prep_raw <- function(contents, tarchetypes::tar_eval( targets::tar_target( tar_indices, - preproc.iquizoo::preproc_data( - tar_parsed, - prep_fun, - .input = input, - .extra = extra - ), + preproc_data(tar_parsed, prep_fun, .input = input, .extra = extra), packages = "preproc.iquizoo" ), data.iquizoo::merge_preproc(contents) @@ -282,6 +277,6 @@ objects <- function() { utils::globalVariables( c( "tar_data", "tar_parsed", "tar_indices", - "prep_fun", "input", "extra" + "preproc_data", "prep_fun", "input", "extra" ) )