Block comparison of class with ==Source:
class(x) == "character" is prone to error since class in R
is in general a vector. The correct version for S3 classes is
inherits(x, "character"). Often, class
k will have an
linters for a complete list of linters available in lintr.