context("write")
test_that("can write Makefile", {
file_path <- tempfile("MakefileR")
write_makefile(makefile(), file_path)
expect_identical(readLines(file_path),
"# Generated by MakefileR, do not edit by hand")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.