to be an error instead of the typical the condition has length > 1 and only the first element will be used warning. It seems like it might be in keeping with package:strict to throw that error. However, it looks like this would require setting an environmental variable...
Sys.setenv(`_R_CHECK_LENGTH_1_CONDITION_`="true")
a <- 1:2
if (a == 1) {
print("ok")
}
What do you think, is setting that env var in scope for package:strict?
R can change its behavior for code like...
to be an error instead of the typical
the condition has length > 1 and only the first element will be used
warning. It seems like it might be in keeping withpackage:strict
to throw that error. However, it looks like this would require setting an environmental variable...What do you think, is setting that env var in scope for
package:strict
?