Without a reprex
(see the FAQ), all I can do is guess. Try renaming class
to Class
to avoid a possible namespace clash with the functioning reading class
to mean the built-in function, rather than the data frame.
Screenshots are almost never helpful. Cut-and-paste output, at least.