shinytest passing on devtools::test() but failing on devtools::check()

Thanks! That has helped fix the error I was getting from the golem test.

Unfortunately I'm still hitting the issue with the shinytest, where it's passing devtools::test, but failing devtools::check with this issue

-- 1. Error: Application works (@test-appload.R#8) ----------------------------------------------------------
Unknown whether app is a regular Shiny app or .Rmd:
Backtrace:

  1. shinytest::expect_pass(testApp(appdir, compareImages = TRUE))
  2. shinytest::testApp(appdir, compareImages = TRUE)
  3. shinytest:::is_rmd(appDir)

When I run the is_rmd function outside of the check it works fine as well, very odd