简单的fitdistr(rnorm(100)," normal")在子字符串中出现"错误"

时间:2016-02-25 07:04:17

标签: r debugging

我正在尝试从 MASS 库中简单地使用 fitdistr 函数,并且它以下列方式失败:

fitdistr(rnorm(100), "normal")

"Error in substring("      ", 1L, (nchar(ans[2L, ]) - nchar(dn[[2L]]))%/%2)
: 4 arguments passed to .Internal(nchar) which requires 3

我更新了RStudio和我所有的R套餐,但仍然没有成功。

有人可以建议如何解决这个问题吗?

sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.2 (unknown)

locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] MASS_7.3-45

loaded via a namespace (and not attached):
[1] tools_3.2.0

0 个答案:

没有答案