Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 在Mac中加载geepack时出现问题_R - Fatal编程技术网

R 在Mac中加载geepack时出现问题

R 在Mac中加载geepack时出现问题,r,R,我想使用R运行GEE过程,但我无法在Mac上加载geepack。这是我的错误。有人能帮我解释一下这是什么意思吗?为什么我需要加载这么多其他软件包才能使用geepack。多谢各位 > library(geepack) Loading required package: doBy Loading required package: survival Loading required package: splines Loading required package: R2HTML Loadin

我想使用R运行GEE过程,但我无法在Mac上加载geepack。这是我的错误。有人能帮我解释一下这是什么意思吗?为什么我需要加载这么多其他软件包才能使用geepack。多谢各位

> library(geepack)
Loading required package: doBy
Loading required package: survival
Loading required package: splines
Loading required package: R2HTML
Loading required package: multcomp
Loading required package: mvtnorm
Loading required package: lme4
Loading required package: Matrix
Loading required package: lattice

Attaching package: 'Matrix'

The following object(s) are masked from 'package:base':

    det


Attaching package: 'lme4'

The following object(s) are masked from 'package:stats':

    AIC, BIC

Loading required package: snow
Error: package 'snow' could not be loaded
In addition: Warning messages:
1: package 'survival' was built under R version 2.13.2 
2: In library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) :
  there is no package called 'snow'

错误信息似乎很清楚。您还没有安装软件包“snow”。

我删除了R.2.13.2版本,安装了旧版本的R 2.11,它工作正常。我认为R.2.13.2版本可能需要一些修复。也许R2.14版本可能会更好。

此外,如果您费心查看geepack的cran页面,您会发现它取决于doBy,而doBy又取决于snow。很多包都有依赖关系;这是一件好事,因为它避免了重新编写和重新编译大量代码。我还要指出,一条错误消息表明您使用的是旧版本的R(<2.13)。你应该在更糟糕的事情发生之前升级。雪本身需要>2.12.1。谢谢您的提示。我对R很陌生,因此可能需要进一步解释。我查阅了互联网,认为我下载的Mac版R2.13.2是最新版本。还有什么需要升级?我将尝试下载snow软件包,看看这是否解决了我的问题