plotbiomes icon indicating copy to clipboard operation
plotbiomes copied to clipboard

use deparse-substitute in the validation helper functions

Open valentinitnelav opened this issue 6 years ago • 0 comments

For example in get_outliers.R, at .validate_tp instead of

stop(
      "\n
      'tp' is not a 'matrix', 'data.frame' or 'data.table'"
    )

use

stop( deparse(substitute(tp)), " is not a 'matrix', 'data.frame' or 'data.table'" )

valentinitnelav avatar Oct 22 '18 10:10 valentinitnelav