We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d0526b commit 9668252Copy full SHA for 9668252
R/vismodel.R
@@ -335,7 +335,7 @@ vismodel <- function(rspecdata,
335
achromatic <- prepare_userdefined(achromatic)
336
337
if (!isTRUE(all.equal(wl, sens_wl, check.attributes = FALSE))) {
338
- if (all(S[!sens_wl %in% wl, ] == 0)) {
+ if (length(sens_wl) > length(wl) && all(S[!sens_wl %in% wl, ] == 0)) {
339
S <- S[sens_wl %in% wl, ]
340
trans <- trans[sens_wl %in% wl]
341
bkg <- bkg[sens_wl %in% wl]
0 commit comments