tests/testthat/fixtures/create-files-to-attach.R

library(graphics)

png(
  filename = testthat::test_path("fixtures", "volcano.png"),
  width = 200,
  height = 200
)
filled.contour(volcano, color.palette = terrain.colors, asp = 1)
dev.off()

cat("testing", file = testthat::test_path("fixtures", "test.ini"))
r-lib/gmailr documentation built on Nov. 5, 2023, 6:22 a.m.