test_that("integration test: assign (#33)", {
package_path <- tempfile("ticpkg", fileext = "pkg")
cat("\n")
dir.create(package_path)
withr::with_dir(
package_path,
{ # nolint
writeLines(
'script_stage <- get_stage("script")',
"tic.R"
)
writeLines("^tic\\.R$", ".Rbuildignore")
expect_error(
callr::r(
function() {
tic::run_all_stages()
},
show = TRUE,
env = c(callr::rcmd_safe_env(), TIC_LOCAL = "true")
),
NA
)
expect_false(file.exists("out.txt"))
}
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.