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

Latest commit

 

History

History

02-spice

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Adding spice

  1. Start an R session in this directory (02-spice)

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

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

    remake::fetch("ragout")
  4. Modify raw_meat.txt in this directory

    • Change the contents to <adjective> meat, e.g., marinated meat
  5. Build the project again. How has the output changed?

    • If nothing changes, check that you have the latest version of the cooking package installed
  6. Fetch the ragout again. Has it changed?

  7. Modify raw_meat.txt in this directory again

    • Add a second line with arbitrary contents, e.g., from supermarket
  8. Build the project again. How has the output changed?

    • Why is the fried_meat target not rebuilt?

      • Hint: Run cooking::chop("raw_meat.txt") in your R session
  9. Edit remake.yml to spice up the frying rule with any spice of your choice, like this:

      fried_meat:
        command: fry(chopped_meat, with = I(c("oil", "pepper")))
    
  10. Build the project

  11. Fetch the updated ragout:

    remake::fetch("ragout")

    What has changed?