[help] scratch/ directory disappearing when working in a different R session? #1124
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Help
Description
I have a few questions:
targets
to runtar_make()
in multiple R sessions simultaneously? (It's okay if the answer is no, and I would guess that it's not preferred, regardless.)targets
to runtar_read()
in a separate R process whiletar_make()
is being run?scratch
directory may be removed when working in a separate process? And, would it be reasonable fortargets
to leave thescratch
directory in place rather than removing it?My guess is that the overall answer will be, "Bill, don't do that." My rationale for wanting to at least do a
tar_read()
in another process is to understand some of the ongoing results and make new targets for the nexttar_make()
run. (For example, I'm making a complex model, I look at one model's results to make changes for what I want to explore in the next model.)I tried to make a reprex, but my tries to this point are not successful.
With some of my long-running
targets
pipelines, I sometimes may want to look at some other objects while the pipeline is running in another R process.Sometimes, when the pipeline running the main jobs comes back, I'll get an error like the following:
It seems like the
scratch
directory no longer exists, and I think that may be due to the fact that I'm looking at objects in another R process. I seem to see the issue happening more often if I runtar_make()
in the other process. I think that I may be violating one of the assumptions oftargets
when I runtar_make()
in another process, but it seems like it should be okay to do atar_read()
in the other process.Beta Was this translation helpful? Give feedback.
All reactions