【问题标题】:"there is no package called" error during installation of sjPlot安装 sjPlot 期间出现“没有调用包”错误
【发布时间】:2016-02-20 03:09:55
【问题描述】:
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"

我已经安装了这个包,所以有谁知道为什么在我输入以下代码后出现上面的错误消息?谢谢

library(lme4)
sjp.lmer(fitted2, type = "fe")

【问题讨论】:

    标签: r sjplot


    【解决方案1】:

    似乎缺少包 pbkrtest,这是 sjPlot 使用的某些包的依赖项。

    【讨论】:

    • 谢谢丹尼尔。这个包你知道怎么下载吗,我搜的时候找不到。
    • 没有最新版本的 R,所以无法下载。再次感谢。
    • 很高兴听到它现在有效。如果我回答了你的问题,你介意接受我的回答吗?
    • 你知道如何在这段代码同时创建的所有绘图上编辑 x 和 y 轴吗? (它创建了 17 个不同的图) sjp.lmer(fitted2, type = "fe.pred")
    • 目前,您必须对返回的绘图对象(在返回的列表 plot.list 中)使用解决方法:all.plots &lt;- sjp.lmer(fit, type = "fe.pred") library(ggplot2) all.plots$plot.list[[1]] + labs(x = "my x axis title", y = "my y axis title")
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-21
    • 2017-11-05
    • 1970-01-01
    相关资源
    最近更新 更多