问题
library("sjPlot", lib.loc="~/R/win-library/3.2")
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘pbkrtest’
Error: package or namespace load failed for ‘sjPlot’
> sjp.lmer(fitted2, type = "fe")
Error: could not find function "sjp.lmer"
I have installed the package, so does anyone know why this is giving me this error message above after I enter the following code? Thanks
library(lme4)
sjp.lmer(fitted2, type = "fe")
回答1:
It looks like package pbkrtest is missing, which is a dependency of some packages that are used by sjPlot.
来源:https://stackoverflow.com/questions/35518656/there-is-no-package-called-error-during-installation-of-sjplot