testthat fails within devtools::check but works in devtools::test
Is there any way to reproduce the environment which is used by devtools::check ? I have the problem that my tests work with devtools::test() but fail within devtools::check() . My problem is now, how to find the problem. The report of check just prints the last few lines of the error log and I can't find the complete report for the testing. checking tests ... ERROR Running the tests in ‘tests/testthat.R’ failed. Last 13 lines of output: ... I know that check uses a different environment compared to test but I don't know how I should debug these problems since they are not reproducible at all.