You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using tinytest for a Bioconductor package: AnVILAz and I am having difficulty using exit_file() and exit_if_not.
They don't seem to be working properly.
I have three methods of exiting the test file using both exit_file() and exit_if_not():
## method 1AnVILAz:::.exit_if_not_anvilaz()
> dput(AnVILAz:::.exit_if_not_anvilaz)
function ()
{
if (!.is_anvil_az())
tinytest::exit_file("Not running on AnVIL Azure workspace")
}
## method 2if (!AnVILAz:::.is_anvil_az())
tinytest::exit_file("Not running on AnVIL Azure workspace")
## method 3tinytest::exit_if_not(
"Not running on AnVIL Azure workspace"=AnVILAz:::.is_anvil_az()
)
Despite these trips, the tests continue to run when running R CMD check and tinytest::test_package("AnVILAz") :
Yes, this is fixed in the development version. I have to ask one or two authors to update their package on CRAN before I can upload because of some false positives there.
Hi Mark, @markvanderloo
I hope you are well.
I am using
tinytest
for a Bioconductor package: AnVILAz and I am having difficulty usingexit_file()
andexit_if_not
.They don't seem to be working properly.
I have three methods of exiting the test file using both
exit_file()
andexit_if_not()
:Despite these trips, the tests continue to run when running
R CMD check
andtinytest::test_package("AnVILAz")
:For context, the package is meant to run on an environment with the
az
command line utility installed.The text was updated successfully, but these errors were encountered: