问题描述
我在 R 中创建了一个模型,我需要使用 copula
这涉及使用 copula 包.我在完全更新的 MacBook Pro 上使用最新版本的 R.
我可以安装 copula 包,但是当我尝试打开 library(copula)
时出现以下错误:
loadNamespace 出错(j
我使用 R 进行统计分析,我不是程序员,老实说,我什至不知道 loadNamespace 是什么意思.我花了一个小时浏览谷歌,我试图按照少数人所说的(例如更新包)去做,但它没有解决任何问题.
试试这个.如果它不起作用,请在运行时使用来自 RStudio/R 的所有消息更新您的问题.
if(!require(pacman)) install.packages("pacman")pacman::p_load(copula)
还要安装依赖项‘gsl’、‘ADGofTest’、‘stabledist’,‘pspline’
尝试网址'https://cran.rstudio.com/bin/windows/contrib/3.3/gsl_1.9-10.1.zip'内容类型应用程序/zip"长度 1154961 字节 (1.1 MB)下载了 1.1 MB
尝试网址'https://cran.rstudio.com/bin/windows/contrib/3.3/ADGofTest_0.3.zip'已下载内容类型应用程序/zip"长度 13377 字节 (13 KB)13 KB
尝试网址'https://cran.rstudio.com/bin/windows/contrib/3.3/stabledist_0.7-0.zip'已下载内容类型应用程序/zip"长度 41314 字节 (40 KB)40 KB
尝试网址'https://cran.rstudio.com/bin/windows/contrib/3.3/pspline_1.0-17.zip'已下载内容类型应用程序/zip"长度 60943 字节 (59 KB)59 KB
尝试网址'https://cran.rstudio.com/bin/windows/contrib/3.3/copula_0.999-14.zip'内容类型应用程序/zip"长度 16620593 字节 (15.9 MB)下载 15.9 MB
包‘gsl’成功解包并且MD5总和检查包‘ADGofTest’成功解包并且MD5总和检查包‘stabledist’成功解包,MD5 sums检查包‘pspline’成功解包并且MD5总和检查包‘copula’成功解包并检查 MD5 总和
下载的二进制包在C:\Users\BigDaddy\AppData\Local\Temp\RtmpA7nv6c\downloaded_packages
已安装copula
I have created a model in R and I need to use copula
which involves using the copula package. I am using the latest version of R on a MacBook Pro that is fully updated.
I can install the copula package but when I trying to open the library(copula)
I get the following error:
I use R for statistical analysis and I am not a programmer and honestly I have no idea what loadNamespace even means. I have spent an hour looking through Google and I have tried to follow what the few that are out there say (update packages for example) to do but it doesn't solve anything.
Try this. If it doesn't work please update your question with all messages from RStudio/R when you run this.
if(!require(pacman)) install.packages("pacman")
pacman::p_load(copula)
这篇关于Copula 包的 R 中的 loadNamespace 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!