Awesome
<!-- README.md is generated from README.Rmd. Please edit that file -->remake tutorial https://goo.gl/fnUyVk
- The basics
- Adding spice
- How to prepare vegetables?
- Where to buy?
- Working with
remake
projects - Marinating the meat
- Reporting
- A tofu ragout
- 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