Writes the test file tests/testthat/test-vanilla-engine.R in the package
whose root is path. The test fails when an engine file differs from the
lock inst/inlavanilla.lock, when a file in the lock is missing, or when a
file R/vanilla-*.R is not in the lock, so that devtools::test() catches
an edit to a copy. It uses base R and testthat only: the package does not
need inlavanilla to run it.
The test reads the source files in R/, which an installed package does not
hold. So it runs with devtools::test() from the source tree, and skips
under R CMD check.
It is optional: use_vanilla() does not add it, and offers it at the end of
its list. The package must already use testthat, as
usethis::use_testthat() sets up.
See also
vanilla_status(), which also checks the lock against its release,
the names and DESCRIPTION.
