Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
It's easy for
testthat::test_file()to maskdevtools::test_file()and I generally want the latter, becausefile = find_active_file(), i.e. it can determine which test file I mean, if I follow the naming convention.I had this problem because I attached testthat in
~/.Rprofile, after devtools. But even if I remove that, the problem still recurs becauseload_all()essentially does the same.Using devtools' addin is one sure way to get
devtools::test_file().Could the devtools version be renamed or aliased to something that designs this problem away?
test_this()perhaps?