R 包安装错误"unknown type name ‘R_CallMethodDef’"



我正在尝试使用install.packages()安装 r 包"sparsesvd",但在编译过程中出错。任何帮助都非常感谢!

"未知类型名称'R_CallMethodDef'">

我也尝试了conda install -c r r-sparsesvd;但得到了错误。

求解环境:失败

PackagesNotFoundError: 以下软件包不可用 当前频道:

  • R-sparsesvd

当前频道:

  • https://conda.anaconda.org/r/linux-64
  • https://conda.anaconda.org/r/noarch
  • https://conda.anaconda.org/bioconda/linux-64
  • https://conda.anaconda.org/bioconda/noarch
  • https://conda.anaconda.org/conda-forge/linux-64
  • https://conda.anaconda.org/conda-forge/noarch
  • https://repo.anaconda.com/pkgs/r/linux-64
  • https://repo.anaconda.com/pkgs/r/noarch

我试过了

conda skeleton cran --recursive r-sparsesvd conda build r-sparsesvd.

虽然第一步成功,但构建失败。

执行已停止 r-sparsesvd-0.1_4-r341h96ca727_0.tar.bz2 的测试失败

这是会话信息。由于项目原因,我必须使用R3.3

R 版本 3.3.2 (2016-10-31( 平台: x86_64-pc-linux-gnu (64 位( 运行于: CentOS Linux 7 (核心(

区域设置:[1] LC_CTYPE=en_US。UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US。UTF-8 LC_COLLATE=en_US。UTF-8 [5] LC_MONETARY=en_US。UTF-8 LC_MESSAGES=en_US。UTF-8 [7] LC_PAPER=en_US。UTF-8 LC_NAME=C [9] LC_ADDRESS=C
LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

附加的基本包: [1] 统计图形 grDevices 利用
数据集方法库

通过命名空间加载(未附加(:[1] tools_3.3.2

这(再次(不是 R、CRAN 或其包的问题......但显然与康达。 在我的系统上,这个依赖项很少的小包严格没有问题:

R> install.packages("sparsesvd")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/sparsesvd_0.1-4.tar.gz'
Content type 'application/x-gzip' length 29729 bytes (29 KB)
==================================================
downloaded 29 KB
* installing *source* package ‘sparsesvd’ ...
** package ‘sparsesvd’ successfully unpacked and MD5 sums checked
** libs
gcc -I"/usr/share/R/include" -DNDEBUG      -fpic  -g -O3 -Wall -pipe   -std=gnu99 -march=native -c las2.c -o las2.o
gcc -I"/usr/share/R/include" -DNDEBUG      -fpic  -g -O3 -Wall -pipe   -std=gnu99 -march=native -c main.c -o main.o
gcc -I"/usr/share/R/include" -DNDEBUG      -fpic  -g -O3 -Wall -pipe   -std=gnu99 -march=native -c svdlib.c -o svdlib.o
gcc -I"/usr/share/R/include" -DNDEBUG      -fpic  -g -O3 -Wall -pipe   -std=gnu99 -march=native -c svdutil.c -o svdutil.o
svdutil.c: In function ‘svd_readBinFloat’:
svdutil.c:265:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
y = *((float *) &x);
^
svdutil.c: In function ‘svd_writeBinFloat’:
svdutil.c:290:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
int y = htonl(*((int *) &r));
^~~
gcc -Wl,-S -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o sparsesvd.so las2.o main.o svdlib.o svdutil.o -L/usr/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/sparsesvd/libs
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (sparsesvd)
The downloaded source packages are in
‘/tmp/RtmpI3TPWj/downloaded_packages’
R> 

相关内容

最新更新