Skip to content

Commit

Permalink
Edit news and make tar_append_static_values() safer
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau-lilly committed May 2, 2022
1 parent 45cf8e5 commit 507d06b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# tarchetypes 0.6.0.9000

* Temporarily change `root.dir` when scanning for dependencies so `knitr` child documents work (#93, @mutlusun).
* Use `format = "rds"` for `target_batch` in `tar_map_rep_raw()` so the global format option does not mess up the pipeline.
* Handle non-atomic length-one list columns in `tar_append_static_values()`.

# tarchetypes 0.6.0

Expand Down
2 changes: 1 addition & 1 deletion R/tar_map_rep_raw.R
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ tar_append_static_values <- function(object, values) {
args <- list(.data = object)
for (name in setdiff(names(values), names(object))) {
args[[name]] <- if_any(
length(values[[name]]) == 1L,
length(values[[name]]) == 1L && is.atomic(values[[name]]),
values[[name]],
list(values[[name]])
)
Expand Down

0 comments on commit 507d06b

Please sign in to comment.