# NOT RUN {
Makefile_recipe()
Makefile_recipe(
target = "this_target",
recipe_command = "R -e 'R_RECIPE' -q",
cache_path = "custom_cache"
)
default_recipe_command()
r_recipe_wildcard()
# }
# NOT RUN {
load_basic_example()
# Look at the Makefile generated by the following.
make(my_plan, paralleliem = "Makefile")
# Generates a Makefile with "R -q -e" rather than
# "Rscript -e".
# Be aware the R -q -e fails on Windows.
make(my_plan, parallelism = "Makefile", jobs = 2
recipe_command = "R -q -e")
# Same thing:
clean()
make(my_plan, parallelism = "Makefile", jobs = 2,
recipe_command = "R -q -e 'R_RECIPE'")
clean()
make(my_plan, parallelism = "Makefile", jobs = 2,
recipe_command = "R -e 'R_RECIPE' -q")
# }
Run the code above in your browser using DataLab