write_makefile | R Documentation |
Makelist
to FileThe makelist
is parsed before writing, so all R code which is not in
a "code" item will be evaluated.
So if any other item's string contains code allowing for a dynamic rule,
for example with some "dependencies" reading
"list.files(\"R\", full.names = TRUE)"
, the Makefile
will
have the
evaluated code, a static list of files in the above case.
write_makefile(make_list, path, Rbin = "Rscript-devel")
make_list |
The list to write to file. |
path |
The path to the file. |
Rbin |
The R binary to use in the |
See
MakefileR::write_makefile
.
make_file <- file.path(tempdir(), "my_Makefile")
write_makefile(provide_make_list(), path = make_file)
cat(readLines(make_file), sep = "\n")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.