I want to write a unit test for a shiny module using testthat package. I am following the instruction of mastering Shiny book. It has written in this book that first we should create a test file using usethis::use_test()
in the R console.
But when I run this code, I get this error:
Error: Path 'my R file path' does not appear to be inside a project or package.
I appreciate any help everybody can provide.