Closed russHyde closed 5 years ago
Note that the contents of this PR have been discussed with @gaborcsardi in issue #135
Hi @gaborcsardi and @hfrick , I was wondering whether one of you might be able to look at this PR.
Looks good, thanks much! Sorry for the delay!
Cheers
A bug in
check_passed
was revealed while running goodpractice tests with the experimental env variable "_R_CHECK_LENGTH_1LOGIC2" = TRUE in R 3.6 (or during devtools::check()).The
chk
variable passed tocheck_passed
can be of two forms:a scalar (logical or NA); as returned in
chk_cyclocomp.R
;or a list(status = (logical or NA), positions = list(...)) as returned in
chk_tnf.R
.The scalar (first case) or the
status
entry indicates whether the check passedcaused the list-form of
chk
to throw the above error.We now extract the
status
indicator fromchk
before running the logical tests to see if the corresponding checking function failed. This cleaned up the stream of logical tests.