remake icon indicating copy to clipboard operation
remake copied to clipboard

Suggestion for new function: `create`

Open dfalster opened this issue 9 years ago • 3 comments

When using remake I find myself often doing something like

x <- remake::make("x")

The object x is being created in my remake workflow, but often in development I want to open in in R and poke around a bit.

To save typing the name of the objects multiple times, I'm suggesting a new function called create which when run via

remake::create("x")

would do the equivalent of x <- remake::make("x")

Quite similar to dump_environment but for accessing a single object rather than whole lot.

dfalster avatar Oct 11 '16 23:10 dfalster

I'm using create_bindings() for this purpose, this makes all targets available in the global environment but only computes/reads anything if necessary.

krlmlr avatar Oct 12 '16 12:10 krlmlr

Thanks @krlmlr, I had forgotten about that function. I suspect a separate function might still be warranted, but will start with create_bindings and see if this fulfills the need.

dfalster avatar Oct 13 '16 01:10 dfalster

Perhaps something that combined the two ideas - an argument to create_bindings that allows creating bindings just for a subset of targets.

richfitz avatar Oct 13 '16 08:10 richfitz