转载自知乎
因为建包使用了rJava,使用64位jdk编译jar文件。devtools::check()报错 i386检测未通过。
ERROR: loading failed for ‘i386’.
问了rJava作者Simon Urbanek,他认为:
If you use bi-arch R, you have to compile package for allt he architectures, so in your case for 32-bit and 64-bit which means you need both 32-bit and 64-bit Java. If you don’t want to do that, you can use–no-multiarch. Please see R documentation for details (or documentation fordevtoolsif you are not using non-standard tools).
暂时不想搞两个版本的包,所以:
补充以下,这样搞出的包,在安装的时候也需要’–no-multiarch’,否则安装报错:
install.packages("yourID/yourPackage", INSTALL_opts = "--no-multiarch")