Skip to content

Commit 5d1c1ba

Browse files
authored
Update digestR.R
if (inherits(colTest, 'try-error'))
1 parent d6f241c commit 5d1c1ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

R/digestR.R

+4-2
Original file line numberDiff line numberDiff line change
@@ -4065,7 +4065,8 @@ setGraphics <- function (file.name = currentSpectrum, all.files = FALSE,
40654065
colErr <- FALSE
40664066
for (i in roi.bcolor){
40674067
colTest <- try(col2rgb(i), silent=TRUE)
4068-
if (class(colTest) == 'try-error')
4068+
#if (class(colTest) == 'try-error')
4069+
if (inherits(colTest, 'try-error'))
40694070
colErr <- TRUE
40704071
}
40714072
}
@@ -4081,7 +4082,8 @@ setGraphics <- function (file.name = currentSpectrum, all.files = FALSE,
40814082
colErr <- FALSE
40824083
for (i in roi.tcolor){
40834084
colTest <- try(col2rgb(i), silent=TRUE)
4084-
if (class(colTest) == 'try-error')
4085+
#if (class(colTest) == 'try-error')
4086+
if (inherits(colTest, 'try-error'))
40854087
colErr <- TRUE
40864088
}
40874089
}

0 commit comments

Comments
 (0)