Skip to content
Prev 5458 / 12125 Next

[R-pkg-devel] Package submission failed with two warnings

Hi Farshad,


The error you get when compiling your vignette gives us a hint:

Error: processing vignette 'Rpvt.Rmd' failed with diagnostics:
package or namespace load failed for 'ggpubr' in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called 'data.table'

There is a long chain of dependencies here: if I write A -> B to say that package A lists package B as an Import (and therefore package B is loaded when package A is attached), we have


ggpubr -> rstatix -> car -> rio -> data.table.


I think the issue is that, since you list ggpubr in "Suggests", there's never a check that all its dependencies (and their dependencies etc) are installed, and therefore data.table was not installed before checking your package. (But I'm not sure exactly why ggpubr is installed but not all the dependencies.)


A solution would be to make your whole vignette fail "gracefully" when ggpubr isn't attached properly. Which is good practice anyway.


Max Turgeon
Assistant Professor
Department of Statistics
Department of Computer Science
University of Manitoba
maxturgeon.ca<http://maxturgeon.ca>