drake
is superseded. The targets
R package is the long-term successor of drake
, and it is more robust and easier to use. Please visit https://books.ropensci.org/targets/drake.html for full context and advice on transitioning. The counterpart of drakeplanner
in targets
is targetsketch
: https://github.com/wlandau/targetsketch.
This R/Shiny app is a companion to the
drake
R package. It helps new
users learn drake
, and it helps
new and experienced users set up new
drake
-powered projects. Simply
provide a drake
plan,
and drakeplanner
will show you the end-to-end dependency graph of your
workflow and produce a downloadable R script to get your project
started.
This app is available online at https://wlandau.shinyapps.io/drakeplanner. If you cannot access it, you can install it locally in an R session.
install.packages("remotes")
remotes::install_github("wlandau/drakeplanner")
Then run it on your own machine.
drakeplanner::drakeplanner()
- Navigate to the
Plan
view (left sidebar). - Write your
drake
plan in thePlan
box. The code must return a validdrake
plan at the end, ideally with a call to thedrake_plan()
function. - Write your custom
functions in the
Functions
box. - Click
Update
button in theControl
box. - Optional: click the
Download
button in theControl
box to save your workflow as an R script.
- For smaller graphs and faster rendering times, consider setting the
max_expand
argument ofdrake_plan()
to a small number for testing and debugging purposes.