Skip to content
This repository has been archived by the owner on Dec 29, 2019. It is now read-only.

krlmlr/remake-tutorial

Repository files navigation

  1. The basics
  2. Adding spice
  3. How to prepare vegetables?
  4. Where to buy?
  5. Working with remake projects
  6. Marinating the meat
  7. Reporting
  8. A tofu ragout
  9. Further steps

Prerequisites

install.packages("remotes") # if not yet installed
remotes::install_github(c("richfitz/remake", "krlmlr/cooking"))
install.packages("rmarkdown") # optionally, for the "Reporting" exercise

Test

Run in a fresh R session, this should complete without error:

test <- function() {
  temp_dir <- tempfile()
  dir.create(temp_dir)
  old <- setwd(temp_dir)
  on.exit(setwd(old))
  writeLines(
    c(
      "packages:", "- cooking", "targets:", "  all:", "    depends: chopped_meat",
      "  chopped_meat:", "    command: chop(I('raw_meat.csv'))"
    ),
    "remake.yml"
  )
  remake::make()
}

test()
#> [  LOAD ]
#> [  READ ]              |  # loading sources
#> <  MAKE > all
#> [ BUILD ] chopped_meat |  chopped_meat <- chop("raw_meat.csv")
#> [  READ ]              |  # loading packages
#> [ ----- ] all

About

A hands-on tutorial for remake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages