我使用RcppMLPACK包中的RcppMLPACK.package.skeleton()
函数创建了一个R包。当我尝试使用devtools::load_all
安装并加载它时,出现以下错误:
clang:错误:没有这样的文件或目录: ' “/Users/vk6/Library/R/3.5/library/RcppMLPACK/lib/libRcppMLPACK.a”'
当我检查文件时,我可以看到它存在:
bash$ ls /Users/vk6/Library/R/3.5/library/RcppMLPACK/lib/libRcppMLPACK.a
/Users/vk6/Library/R/3.5/library/RcppMLPACK/lib/libRcppMLPACK.a
Makevars
目录中的src
文件如下:
PKG_LIBS= `$(R_HOME)/bin/Rscript -e "RcppMLPACK:::LdFlags()"` $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
有什么不对?