esqLABS / esqlabsR

Utility functions for modelling and simulation workflows within esqLABS organization
https://esqlabs.github.io/esqlabsR/
GNU General Public License v2.0
16 stars 2 forks source link

More informative error message, in the createPlotsFromExcel, when xOffsets is set but not xOffsetsUnits (also for y too) #668

Closed dlefaudeux closed 4 months ago

dlefaudeux commented 4 months ago

in the Plots.xls, DataCombined Sheet if xOffsets is set but not xOffsetsUnits, the createPlotsFromExcel fails with this error message:

Error in if (stringr::str_detect(unit, pattern = mutants)) { : 
  missing value where TRUE/FALSE needed

Same for the yOffsets and yOffsetsUnits too.

It would be nice to have a more explicit error message

similar to #483