ProjectMOSAIC / mosaic

Project MOSAIC R package
http://mosaic-web.org/
93 stars 26 forks source link

eliminate any uses of class() == and replace with inherits() #794

Closed rpruim closed 2 years ago

rpruim commented 2 years ago

Looks like we have a few instances of this in some old code. Examples can be found in findZerosMult.R, rfun.R, and perhaps elsewhere.

rpruim commented 2 years ago

I've replaced some of these with calls to inherits() and others with "is functions" (is.numeric(), rlang::is_formula(), etc.)