Questions tagged [drake-r-package]

The drake R package is a Make-like pipeline toolkit. Its purpose is to enhance reproducibility, automation, speed, and scale in R-focused data science workflows. Use this tag for general questions about usage or for help optimizing and debugging drake-powered projects. For bug reports and feature requests, please post to the GitHub issue tracker.

Visit the following to learn more about the drake R package.

85 questions
0
votes
1 answer

`knitr_out, `file_out` and `vis_drake_graph` usage in R:drake

I'm trying to understand how to use knitr_out, file_out and vis_drake_graph properly in drake. I have two questions. Q1: Usage of knitr_out and file_out to create markdown reports While a code like this works correctly for one of my smaller…
Rahul
  • 2,579
  • 1
  • 13
  • 22
0
votes
1 answer

Hash not found while visualizing

In my active project, I find this error today. The targets are up to date. However the visualization fails. > config <- drake_config(plan) > outdated(config) character(0) > vis_drake_graph(config, build_times = "build", targets_only = T) Error: hash…
Rahul
  • 2,579
  • 1
  • 13
  • 22
0
votes
0 answers

Very long run times for drake, compared to when I run simply through R

I am trying to use drake for my workflow. It seems to have a lot of potential, but I noticed that that drake takes a very long time to run, and even simple step that take less than a second when I run "manually", can take 20 seconds or more when…
0
votes
1 answer

File paths with drake on a shared drive

I am encountering some odd drake behaviour which I just can't figure out. I am trying to add a .rmd to my drake plan. I am working on a remote machine AND on a network drive on that machine. If I try to add an .rmd file to my plan like this: >…
boshek
  • 4,100
  • 1
  • 31
  • 55
0
votes
1 answer

How to create a plan target to cross over the results of previous map targets and a new variable?

From multiple target (a) created with map I have 2 other targets (b and d) that iterate over the first target. Now I would like to use the results of these targets in another target. In addition I would like to cross with another variable (model). I…
Jean
  • 15
  • 7
0
votes
2 answers

Rename target without having to rebuild

Recently after running make() on a drake plan I noticed that I had given the wrong name to one of the targets. Unfortunately this also happened to be one of the targets with a long runtime. Is there a way to rename a target in a drake plan without…
0
votes
1 answer

How to generate arguments to a target transformation dynamically in R drake?

I want to generate a large plan whose arguments depend on previously computed targets. Is that possible at all? Specifically, I need something along the lines of: drake_plan( data = get_data(), lots_of_sds = get_sds_from_a_complex_pipeline() …
0
votes
1 answer

drake R - Is it possible to functionally generate a target with a trigger

I'm currently evaluating drake for a project, and I'm wondering if there's a way to programmatically generate a target or part of a plan that includes a trigger. My ideal use case/sample code is below, but I'm having issues trying to make it work,…
UmbraMagus
  • 25
  • 5
0
votes
1 answer

How to iterate over values of a previous target in drake

In drake, I want to take the values of one target and use them in a map to create more targets. In the example below, is there a way to make y2 actually be three targets, as it does for y3? I know it's very different to have the actual values than a…
karldw
  • 361
  • 3
  • 12
0
votes
1 answer

Printing a single tibble row over multiple lines of text

It is sometimes desirable to print a string in a tibble over multiple lines. Example: https://github.com/ropensci/drake/issues/489. drake plans with long commands are hard to read. library(drake) pkgconfig::set_config("drake::strings_in_dots" =…
landau
  • 5,636
  • 1
  • 22
  • 50
1 2 3 4 5
6