r-找不到BiodiversityR::accumcomp.long函数



我正在尝试使用Biodiversity.R包中的函数accumcomp.long来调整ggplot中的物种积累曲线。

但是,调用函数accumcomp.long会出现错误,表明该函数可能已不存在。

accum.long1 <- accumcomp.long(Accum.1, ci=NA, label.freq=5)
Error in accumcomp.long(Accum.1, ci = NA, label.freq = 5) : 
could not find function "accumcomp.long"

函数BiodiversityR::accumcomp.long返回

Error: 'accumcomp.long' is not an exported object from 'namespace:BiodiversityR'

我不确定这是否是包的问题,包加载到R空间的方式,或者可能与包无关,只是我的数据格式。

我的社区和环境文件属于dataframe类。我已经尝试将它们加载为.csv文件和.rda文件,但错误仍然存在。

??accumcomp.long

呈现";未找到结果";。

我使用的是R版本3.5.3(2019-03-11(

关于我还能尝试什么,有什么建议吗?

提前感谢!

我重新安装了包BiodiversityR和包含的force=T(根据本线程https://community.rstudio.com/t/could-not-find-function-error-even-though-fun-is-in-namespace-and-has-an-rd-file/91243)。然后我重新装上包裹。我不确定force=T的作用,但accumcomp.long函数现在起作用了。

最新更新