ropensci / ckanr

R client for the CKAN API
https://docs.ropensci.org/ckanr
Other
99 stars 38 forks source link

R CMD check note "if conditions comparing class to string" #196

Closed fjuniorr closed 1 year ago

fjuniorr commented 1 year ago

The following note is being raised:

Found if() conditions comparing class() to string:
File ‘ckanr/R/group_update.R’: if (class(x) != "list") ...
File ‘ckanr/R/package_search.R’: if (class(ver) == "try-error") ...
File ‘ckanr/R/package_update.R’: if (class(x) != "list") ...
Use inherits() (or maybe is()) instead.