Callr error when running tar_make() in renv project #506
Replies: 1 comment 19 replies
-
It seems like this issue should be related to your callr::r(function() library(tidyverse)) I am betting you will get the similar errors. Although, I cannot explain what |
Beta Was this translation helpful? Give feedback.
19 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Not sure if this is a bug with targets, callr or renv to be honest, but trying here first.
I have been running in to this error message for a while now at the end of the make process but just ignoring it since everything seems to be working anyways:
But I also had the setting
TAR_MAKE_REPORTER="timestamp"
set in my .Renviron and when I removed ittar_make()
refuses to run and produces the following error:I have no problem starting the session or manually running
source("renv/activate.R")
so it seems it only relates to the process started by callr. This is confirmed bytar_make(callr_function = NULL)
running without problem.It turns out the issue is somehow related to the setting
RENV_CONFIG_USER_PROFILE=TRUE
in my.Renviron
, but not to the contents of the~/.Rprofile
since the error happens even when~/.Rprofile
is empty. But as long asRENV_CONFIG_USER_PROFILE
is set at all (either toTRUE
orFALSE
) the error shows up. But if I haveTAR_MAKE_REPORTER="timestamp"
,tar_make()
runs but the prints the error at the end. What do you think, is it a targets issue or not?Edit: just realized I get the same error running
drake::r_make()
in a drake project, so seems less likely its targets related I guess.Beta Was this translation helpful? Give feedback.
All reactions