don't check class by looking at class name
colin-fraser opened this issue · comments
Colin Fraser commented
R CMD CHECK
raises a note.
Found if() conditions comparing class() to string:
File ‘Radlibrary/R/graph_api.R’: if ((class(token) == "character") & length(token) == 1) ...
Use inherits() (or maybe is()) instead.
Fix this