From 98490c1af0937cfb6c8cf4ce9374e3ffdcdeb20f Mon Sep 17 00:00:00 2001 From: wlandau Date: Fri, 5 Apr 2024 13:45:22 -0400 Subject: [PATCH] Fix #1244 --- NAMESPACE | 1 + NEWS.md | 3 ++- R/tar_package.R | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/NAMESPACE b/NAMESPACE index fc02a05a..1f484dff 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -572,6 +572,7 @@ importFrom(tidyselect,starts_with) importFrom(tools,file_path_sans_ext) importFrom(utils,browseURL) importFrom(utils,capture.output) +importFrom(utils,compareVersion) importFrom(utils,data) importFrom(utils,globalVariables) importFrom(utils,head) diff --git a/NEWS.md b/NEWS.md index 6dc5f740..1b49f570 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,10 +2,11 @@ ## Invalidating changes -* Use `secretbase::siphash13()` instead of `digest(algo = "xxhash64", serializationVersion = 3)` so hashes of in-memory objects no longer depend on serialization version 3 headers (#1244, @shikokuchuo). Unfortunately, pipelines built with earlier versions of `targets` will need to rerun. However, `tar_make()` now prompts the user so a decision can be made to continue or downgrade in the interactive case. +* Use `secretbase::siphash13()` instead of `digest(algo = "xxhash64", serializationVersion = 3)` so hashes of in-memory objects no longer depend on serialization version 3 headers (#1244, @shikokuchuo). Unfortunately, pipelines built with earlier versions of `targets` will need to rerun. ## Other improvements +* Inform and prompt the user when the pipeline was built with an old version of `targets` and changes to the package will cause the current work to rerun (#1244). For the `tar_make*()` functions, `utils::menu()` prompts the user to give people a chance to downgrade if necessary. * For type safety in the internal database class, read all columns as character vectors in `data.table::fread()`, then convert them to the correct types afterwards. # targets 1.6.0 diff --git a/R/tar_package.R b/R/tar_package.R index 9c047359..94859333 100644 --- a/R/tar_package.R +++ b/R/tar_package.R @@ -32,8 +32,8 @@ #' @importFrom tidyselect all_of any_of contains ends_with everything #' last_col matches num_range one_of starts_with #' @importFrom tools file_path_sans_ext -#' @importFrom utils browseURL capture.output data globalVariables head menu -#' packageVersion stack tail +#' @importFrom utils browseURL capture.output compareVersion data +#' globalVariables head menu packageVersion stack tail #' @importFrom vctrs vec_c vec_rbind vec_size vec_slice #' @importFrom yaml read_yaml NULL