Open krlmlr opened 7 years ago
Neat idea, @krlmlr! I would absolutely support this. Got a pull request in mind?
I'll let it simmer a bit. Probably the packages used by this script should be added as "Suggests:"?
If we plan to subsume this script into remakeGenerator as a function (maybe something like import_remake("remake.yml")
or recover_generator("remake.yml")
), I'm actually hoping to use "Imports:" and importFrom rather than "Suggests:". Sound okay?
Also, just so I understand: what is the role of backticks in parsing the targets? If you use commands_string()
or commands_batch()
instead of commands()
, will we still need to be as careful as you are about how symbol are handled?
I just tried your script on the remake.yml
from example_remakeGenerator("basic"); source("basic/workflow.R")
, and I got "Error: wrong result size (25), expected 34 or 1" on mutate(command = unlist(command))
. I'm using R 3.3.2 and the latest CRAN releases of tibble, dplyr, forcats, and tidyr.
Also, no rush on the pull request. Regardless of which one of us gets to this first, let's make sure to add you as a contributor when the functionality is implemented.
Started a project with
remake
, now want to try your package. Challenge: Get a workingworkflow.R
from aremake.yml
file. The following code worked for me:Let me know if you'd support something like this in your package.