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 have previously reported an issue about getting "bad error message", which was fixed, but now I have run into another instance of it. Here is some code that produces the error for me:
library(assertthat)
library(fs)
# Works fine (assertion fails normally)
assert_that(all(file_exists(c("/this/path/does/not/exist/fileA", "/this/p", "C"))))
# One char longer: "bad error message"
assert_that(all(file_exists(c("/this/path/does/not/exist/fileA", "/this/pa", "C"))))
## Returns 1 element
see_if(all(file_exists(c("/this/path/does/not/exist/fileA", "/this/p", "C"))))
## One char longer: Returns 2 elements
see_if(all(file_exists(c("/this/path/does/not/exist/fileA", "/this/pa", "C"))))
As shown by the see_if calls at the bottom, the problem coincides with the vector length that causes see_if to return a vector of length greater than 1.
The text was updated successfully, but these errors were encountered:
I have previously reported an issue about getting "bad error message", which was fixed, but now I have run into another instance of it. Here is some code that produces the error for me:
As shown by the
see_if
calls at the bottom, the problem coincides with the vector length that causessee_if
to return a vector of length greater than 1.The text was updated successfully, but these errors were encountered: