-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to make targets in a new session #333
Comments
That sounds like a very useful suggestion. Other possible options would be, to use a saved session. One would need a function in drake which safes the session (including loaded packages?) and which could be recalled when passed as an argument:
to save the current session in the
to start the make with a
|
I am not sure about this. It seems like something users can take care of outside
Yes, |
Re: #296 (comment), I agree with @krlmlr. |
Re: #296 (comment) and #296 (comment), it should not be too hard to add a I had concerns before, and my biggest remaining one is about defaults. Initially, I think the default should be to build the targets in the current session. Then, we can actually look at the overhead and make a decision for the next release. |
I think this is a reasonable choice, for now. Perhaps using |
I think so. To be honest, still feel resistant to this feature, and I think a separate |
I hear you, but I am viewing this as primarily a power-user feature. Maybe |
Just submitted a PR (#346) to fix this. @rkrug and @AlexAxthelm, it would be great to have your input if you have time to take a look. |
That is exactly what I am planning to do. I want to use drake in a production environment (real time likely) to import data, clean, process, analyse, model, ... . And for that, having the |
Be warned: in #346, the new session is still unavoidably dirty. Imports are usually globals, and they need to be copied to the new session individually. Even if you define an |
Thanks! excited to start trying this today. |
Update: r-lib/processx#113 poses major problems with this feature if the user selects I will need to rethink the newly refactored |
From #296, #330, and @rkrug.
make(session = "vanilla")
Creates the
config
object and then callsmake_with_config()
in a newcallr::r_vanilla()
process. Here, spend some overhead to enhance reproducibility.make(session = "background")
Same as
make(session = "vanilla")
, but withcallr::r_bg()
. That way,make()
will not block the user's R session. Here, we may also want to print a console message whenmake()
is done.make(session = "local")
The default option, lowest overhead, already the current behavior. Just run
make_with_config()
in the current R session.Other options from
callr
?Should we consider
r_copycat()
andr()
itself? Maybe pass thecallr
function directly tosession
instead of a string? The arguments look mostly similar enough.The text was updated successfully, but these errors were encountered: