I routinely develop small packages using devtools on a development server, where I run test() before pushing to GitHub and then deploying to a staging server.
Compared to the development server, the environment and the set of installed packages can be different on the staging server (I do not administer both). So, I would like to do the following on the staging server as a quick check:
devtools::install_github("myorg/foo")
testthat::test_package("foo") 
However, I get the following:
No installed testthat tests found for foo
If I run:
dir(file.path(.libPaths()[1], "foo"))
... I can see that there is no tests/ subdirectory.
Can I pass some sort of argument to install_github("myorg/foo", ...) that will force installation of the test suite, so that I can then use test_package("foo", ...) to test it "as installed" on the staging server?
There is a tests/ directory in the repository on GitHub, so install_github() should in theory have access to that.