-
When I call Local targets::tar_load(config_game)
#> Warning in file_diff_dbl(chr): NAs introduced by coercion Created on 2021-04-24 by the reprex package (v2.0.0) Session infosessionInfo()
#> R version 4.0.5 (2021-03-31)
#> Platform: x86_64-w64-mingw32/x64 (64-bit)
#> Running under: Windows 10 x64 (build 19042)
#>
#> Matrix products: default
#>
#> locale:
#> [1] LC_COLLATE=Chinese (Simplified)_China.936
#> [2] LC_CTYPE=Chinese (Simplified)_China.936
#> [3] LC_MONETARY=Chinese (Simplified)_China.936
#> [4] LC_NUMERIC=C
#> [5] LC_TIME=Chinese (Simplified)_China.936
#>
#> attached base packages:
#> [1] stats graphics grDevices datasets utils methods base
#>
#> loaded via a namespace (and not attached):
#> [1] igraph_1.2.6 knitr_1.32 magrittr_2.0.1 tidyselect_1.1.0
#> [5] R6_2.5.0 rlang_0.4.10 fansi_0.4.2 stringr_1.4.0
#> [9] styler_1.4.1 highr_0.9 targets_0.4.1 tools_4.0.5
#> [13] data.table_1.14.0 xfun_0.22 utf8_1.2.1 cli_2.4.0
#> [17] withr_2.4.2 htmltools_0.5.1.1 ellipsis_0.3.1 yaml_2.2.1
#> [21] digest_0.6.27 tibble_3.1.1 lifecycle_1.0.0 crayon_1.4.1
#> [25] processx_3.5.1 callr_3.7.0 purrr_0.3.4 codetools_0.2-18
#> [29] ps_1.6.0 vctrs_0.3.7 fs_1.5.0 glue_1.4.2
#> [33] evaluate_0.14 rmarkdown_2.7 reprex_2.0.0 stringi_1.5.3
#> [37] compiler_4.0.5 pillar_1.6.0 backports_1.2.1 renv_0.13.2
#> [41] pkgconfig_2.0.3 I have no idea how to reproduce it in a new project, but I am sure it is there after upgrading {targets} to the newer version of |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
It's probably the upgrade. It should go away for targets your run with 0.4.1. For now, you can ignore those warnings. |
Beta Was this translation helpful? Give feedback.
-
Here comes the reprex. I adjusted the file library(targets)
library(tarchetypes)
source("R/functions.R")
options(tidyverse.quiet = TRUE)
tar_option_set(packages = c("dplyr", "ggplot2", "readr", "tidyr"))
list(
tar_target(
raw_data_file,
"data/raw_data.csv",
format = "file"
),
tar_target(
raw_data,
read_csv(raw_data_file, col_types = cols())
),
tar_target(
data,
{
options(OutDec = ",")
raw_data %>%
filter(!is.na(Ozone)) %>% head()
}
),
tar_target(hist, create_plot(data)),
tar_target(fit, lm(Ozone ~ Wind + Temp, data)),
tar_render(report, "index.Rmd")
) Actually, I think that |
Beta Was this translation helpful? Give feedback.
-
Just chiming here because I had this warning and solved it by clearing out a dead target. It seems like one of the hash values had landed in the
Which led to these warnings for me whenever |
Beta Was this translation helpful? Give feedback.
It's probably the upgrade. It should go away for targets your run with 0.4.1. For now, you can ignore those warnings.