R-Lum / Luminescence

Development of the R package 'Luminescence'
http://r-lum.github.io/Luminescence/
GNU General Public License v3.0
15 stars 7 forks source link

crash in analyse_IRSAR.RF() if originator is NA #382

Closed mcol closed 2 hours ago

mcol commented 2 hours ago

This crashes:

data(ExampleData.RLum.Analysis, envir = environment())
analyse_IRSAR.RF(
      list(IRSAR.RF.Data),
      plot = FALSE,
      method.control = list(vslide_range = "auto", cores = 1)
  )
# Error in if (object[[1]]@originator == "read_RF2R") { :
#   missing value where TRUE/FALSE needed

because in this example we have originator = NA.

RLumSK commented 2 hours ago

OK, then we should chain this with is.na(...) &&