^_^简约而不简单!欢迎来到梅卫平の阅览室!您是第 位访客^_^

🌱 VIP绿色通道

(一)常用检索: 1. JCR-IF查询路径一, 路径二, 路径三      2. CiteScore-IF查询     3. SCI期刊检索     4. 中科院分区查询路径一, 路径二     5. SSCI检索     6. ESCI检索     7. EI检索 (备用)     8. ISTP检索
(二)ESI检索&Nature Index查询: 1. ESI查询      2. Nature Index查询      3. Nature Index Journal列表
(三)基金查询入口: 1. 国自然官方查询     2. 国自然梅斯查询     3. 国自然科学网查询
(四)备用网址: 1. 梅斯SCI期刊智能查询     2. 论文被SCI收录情况查询方法     3. CSCD期刊检索     4. 中国知网检索     5. PubChem     6. ChemSpider     7. 科研者之家     8. 爱科研

安装运行SIBER(in SIAR)时,如何解决 Error: not a matrix


(本文于 2016-5-30 22:09 首发于 “科学网”)
原创博文,谢绝转载 2017/10/05 updated 温馨提示:请确保您的 R软件(及R相关软件)安装的系统盘(e.g., C盘),这点十分重要!

【SIBER (SIAR package) in R:物种生态位重复度计算】的博文请点击下面的网址:

http://meiweiping.cn/SIBER%20(SIAR-package)-in-R%EF%BC%9A%E7%89%A9%E7%A7%8D%E7%94%9F%E6%80%81%E4%BD%8D%E9%87%8D%E5%A4%8D%E5%BA%A6%E8%AE%A1%E7%AE%97/

When tring SIBER (in SIAR) , however after entering the following codes:

1
SEA.B <- siber.ellipses(dC,dN,group,R=reps)

error occured as:

1
Error: not a matrix

Eventhough try the following method, it does not worked.

1.Updated packages.

2.Updated R.

3.Delete R and reinstalled.


Anyway, now show you the solved method briefly:

Step 1.

Install the lastest “Rtools33.exe” into your computer(e.g., C: disk) from website:

https://cran.r-project.org/bin/windows/Rtools/

(所安装的Rtools版本号和 R软件的版本号是否对应正确,见下图)

比如Rtools33.exe对应的R软件版本就是R3.2.x-3.3.x.PNG

安装 Rtools34.exe的网友请另外注意:

Change History of Rtools34.exe

Changes since R 3.3.0

The version number has been updated to 3.4.x.y.

Support for the gcc 4.6.3 toolchain has been dropped.

We have updated Tcl/TK to version 8.6.4. If you are using Rtools34 to build R 3.3.x, you will need to change

TCL_VERSION = 85

to

TCL_VERSION = 86

in R_HOME/src/gnuwin32/fixed/etc/Makeconf.

It’s a pity that the software is not working on Mac.

Step 2.

Run some codes like below in R or Rstudio:

1
2
3
4
5
library(devtools)

install_github("andrewljackson/siar@master", build_vingettes = TRUE)

library(siar)

Yeah,now it can work properly, right? OK, you can you try it.



FAQ

1. 2017-3-28 23:07

Following my recent post about SIBER being broken by spatstat’s new structure, if anyone is still using SIAR you will also need to update to the development version on github:

1
devtools::install_github("andrewljackson/siar", build_vingettes == TRUE)

2. 2017-03-28 20:18

Important SIBER news.

A major change to the package spatstat on which SIBER depends has broken my new version of SIBER that i just uploaded to CRAN. I will not be able to get a new version up for a few weeks, so in the meantime, please install the development branch directly from github using the code below. More details available at

https://github.com/AndrewLJackson/SIBER/blob/master/NEWS.md

1
2
3
4
5
6
# install.packages("devtools") # install if necessary

devtools::install_github("andrewljackson/SIBER",
build_vingettes = TRUE)

library(SIBER)


<已有 次阅读>


由于本文作者水平有限,文中如有错误之处,欢迎大家批评指正!

① 本文仅代表作者个人观点,不代表任何其它立场,欢迎交流合作!

② 转载与分享请注明:本文源于 http://meiweiping.cn

^_^ 本文字数统计:571 字