diff --git a/tests.R b/tests.R index 920a40a72a68c4ef43076e98b7405c5c10d744d7..f0a50749e55dc5819f4245304c6a261f583c03b0 100644 --- a/tests.R +++ b/tests.R @@ -2,7 +2,7 @@ library(readr) library(dplyr) library(data.table) -library(drake) # don't use it? You should +library(drake) # don't use it? You should. You'll see why library(lubridate) library(hms) library(saveData) @@ -24,6 +24,9 @@ getFile <- function(f){ # drake plan ---- # this gets run once and only once +# drake does what's in the plan and only re-does it if something in +# the plan changes - such as the file to be loaded + plan <- drake::drake_plan( wHRawD = getFile(rawF), wHprocessedD = getFile(processedF)