[R] Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed

javed khan j@vedbtk111 @end|ng |rom gm@||@com
Wed Jan 26 15:04:51 CET 2022


Ivan, thanks

When I use options(error = NULL)

it says: Error during wrapup: missing value where TRUE/FALSE needed
Error: no more error handlers available (recursive errors?); invoking
'abort' restart

With traceback(), I get

4: readable_number(max_value - min_value, FALSE)
3: get_nice_ticks(lower_bound, upper_bound)

On Wed, Jan 26, 2022 at 2:53 PM Ivan Krylov <krylov.r00t using gmail.com> wrote:

> On Wed, 26 Jan 2022 14:47:16 +0100
> javed khan <javedbtk111 using gmail.com> wrote:
>
> > Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed
>
> > var <- ifelse(test$operator == 'T14', 1, 0)
>
> The error must be in a place different from your test$operator
> comparison. Have you tried traceback() to get the call stack leading to
> the error? Or options(error = recover) to land in a debugger session
> the moment an uncaught error happens? (Use options(error = NULL) to go
> back to the default behaviour.)
>
> Unrelated: var <- test$operator == 'T14' will also give you an
> equivalent logical vector with a bit less work.
>
> --
> Best regards,
> Ivan
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list