我尝试了很多方法,但我仍然无法使用msn.marginal
进行研究。
当我尝试在最新的R软件(Ri386 3.2.0)中安装软件包sn
时,msn.marginal
不在那里
msn.marginal
错误:对象' msn.marginal'找不到
我还尝试安装sn
版本0.4-18的软件包,但我仍然无法使用msn.marginal
所以,我尝试安装版本为0.4-14的sn
包,但这就是我得到的
install.packages(" http://cran.r-project.org/src/contrib/Archive/sn/sn_0.4-14.tar.gz",repo = NULL,type =" source")
将软件包安装到'C:/Users/Owner/Documents/R/win-library/3.2' (因为'lib'未指定)
尝试访问网址' http://cran.r-project.org/src/contrib/Archive/sn/sn_0.4-14.tar.gz'
内容类型' application / x-gzip'长度60084字节(58 KB)
下载了58 KB
- 安装源包' sn' ...
** R
**数据
** inst
**准备延迟加载包
**帮助
警告: C:/Users/Owner/AppData/Local/Temp/RtmpclmZuh/R.INSTALL4ee448bd3fa9/sn/man/dmsn.Rd:12-16: Section \ synopsis无法识别,将被删除
警告: C:/Users/Owner/AppData/Local/Temp/RtmpclmZuh/R.INSTALL4ee448bd3fa9/sn/man/dmst.Rd:12-17: Section \ synopsis无法识别,将被删除
警告: C:/Users/Owner/AppData/Local/Temp/RtmpclmZuh/R.INSTALL4ee448bd3fa9/sn/man/dsn.Rd:13-18: Section \ synopsis无法识别,将被删除
警告: C:/Users/Owner/AppData/Local/Temp/RtmpclmZuh/R.INSTALL4ee448bd3fa9/sn/man/dsn2.plot.Rd:10-12: Section \ synopsis无法识别,将被删除
警告: C:/Users/Owner/AppData/Local/Temp/RtmpclmZuh/R.INSTALL4ee448bd3fa9/sn/man/dst.Rd:13-18: Section \ synopsis无法识别,将被删除
警告: C:/Users/Owner/AppData/Local/Temp/RtmpclmZuh/R.INSTALL4ee448bd3fa9/sn/man/dst2.plot.Rd:10-12: Section \ synopsis无法识别,将被删除
警告: C:/Users/Owner/AppData/Local/Temp/RtmpclmZuh/R.INSTALL4ee448bd3fa9/sn/man/msn.conditional.Rd:12-15: Section \ synopsis无法识别,将被删除
警告: C:/Users/Owner/AppData/Local/Temp/RtmpclmZuh/R.INSTALL4ee448bd3fa9/sn/man/msn.marginal.Rd:10-12: Section \ synopsis无法识别,将被删除
警告: C:/Users/Owner/AppData/Local/Temp/RtmpclmZuh/R.INSTALL4ee448bd3fa9/sn/man/msn.quantities.Rd:10-12: Section \ synopsis无法识别,将被删除
警告: C:/Users/Owner/AppData/Local/Temp/RtmpclmZuh/R.INSTALL4ee448bd3fa9/sn/man/sn.cumulants.Rd:9-11: Section \ synopsis无法识别,将被删除
警告: C:/Users/Owner/AppData/Local/Temp/RtmpclmZuh/R.INSTALL4ee448bd3fa9/sn/man/st.cumulants.Rd:10-13: Section \ synopsis无法识别,将被删除
***安装帮助索引
**构建包装索引
**测试是否可以加载已安装的包
*** arch - i386
*** arch - x64
- 完成(sn)
msn.marginal
错误:对象' msn.marginal'找不到
为什么msn.marginal
被删除?
答案 0 :(得分:0)
我首先从我的库中删除了sn
- 包的副本,以便我可以从Archives安装。您对install.packages
的呼叫似乎已成功(因为您获得了" DONE" -message),但您似乎无法执行:
library(sn) # since if you had you would either get an error or this message:
Loading required package: mnormt
Package 'sn', 0.4-14 (2010-01-16). Type 'help(SN)' for summary information
(如果你已经执行过,那个调用应该产生错误或那个消息。)然后这会产生代码:
> msn.marginal
function (xi = rep(0, length(alpha)), Omega, alpha, comp = 1:d,
dp = NULL)
{
if (!is.null(dp)) {
if (!is.null(dp$xi))
xi <- dp$xi
else if (!is.null(dp$beta))
xi <- as.vector(dp$beta)
Omega <- dp$Omega
alpha <- dp$alpha
}
alpha <- as.vector(alpha)
# Snipped remainder of function code.....