vanmooylipidomics/LOBSTAHS

Error when calling generateLOBdbase(): "Error in FUN(X[[i]], ...): only defined on a data frame with all numeric variables"

jamesrco opened this issue · 2 comments

Troubleshooting error for user @MarcNIOZ. User reported obtaining error

Error in FUN(X[[i]], ...):
  only defined on a data frame with all numeric variables"

when calling generateLOBdbase() using custom componentCompTable and adductHierarchies matrix.

Resolution: After investigating, discovered that user's custom adductHierarchies matrix did not contain column headings with exact name matches to every Adduct_hierarchy_lookup_class given in the componentCompTable.

Commit f561801 adds a new stop() call to catch this error, stop the runSim() loop and provide specific feedback to user.