Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
R
R.Rproj
README.md
remake.yml

README.md

Working with remake projects

  1. Start an R session in this directory (05-editing)

    • RStudio users, open the *.Rproj file in this directory
  2. Build the project:

    remake::make()
  3. Fetch the ragout:

    remake::fetch("ragout")
  4. Create active bindings for all targets:

    remake::create_bindings()
  5. Test the active bindings:

    raw_meat
    fried_meat
    cooked_potatoes
  6. Create a new file named steps.R in the R subdirectory

  7. Implement the marinate() function in this file:

    marinate <- function(what, time = 60) {
      message("Marinating for ", time, " seconds, please wait...")
      Sys.sleep(time)
      structure("marinated meat", class = "food", input = list(what))
    }
  8. Test it in your local R session:

    requireNamespace("cooking")
    source("R/steps.R")
    marinate(I("raw meat"), 5)
  9. Marinate the raw_meat in your local R session.