Skip to content
Prev 7767 / 12125 Next

[R-pkg-devel] Submission did not pass incoming checks

Le 27/02/2022 ? 19:15, spsanderson at gmail.com a ?crit?:
I don't see any error, only notes and warning.
For notes, they are pretty explicit, saying
Found if() conditions comparing class() to string:
File ???healthyR.ai/R/vec-hai-fourier-discrete.R???: if (class(.x) == 
"Date") ...

As class(x) can be a vector of strings, not just a string, it is much 
safer to use constructs like 'if (inherits(.x, "Date")) ...'

As to the warning, it says that you did not increment the package 
version which should be done on every new submission.

Best,
Serguei.