安装R包“SqlRender”时出错

s3fp2yjn  于 2023-11-14  发布在  其他
关注(0)|答案(1)|浏览(99)

我是R编程的新手,我试图在Windows 7上运行"install_github(" ohdsi/SqlRender ")",64位的JDK 7(64位)和R版本3.1.2和R-GUI(64位)。
我得到以下错误:

> library("devtools")
Warning message: 
package ‘devtools’ was built under R version 3.1.3 
> install_github("ohdsi/SqlRender")
Downloading github repo ohdsi/SqlRender@master
Installing SqlRender
"C:/PROGRA~1/R/R-31~1.2/bin/x64/R" --no-site-file --no-environ --no-save --    no-restore CMD INSTALL  \
"C:/Users/PPingali/AppData/Local/Temp/RtmpMtqVJl/devtools1318104472eb/OHDSI- SqlRender-cc551a2"  \
  --library="C:/Users/PPingali/Documents/R/win-library/3.1" --install-tests 

* installing *source* package 'SqlRender' ...
** R
** inst
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
*** arch - i386
Error : .onLoad failed in loadNamespace() for 'rJava', details:
  call: inDL(x, as.logical(local), as.logical(now), ...)
  error: unable to load shared object 'C:/Users/PPingali/Documents/R/win- library/3.1/rJava/libs/i386/rJava.dll':
  LoadLibrary failure:  %1 is not a valid Win32 application.

Error: loading failed
Execution halted
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'C:/Users/PPingali/Documents/R/win-library/3.1/SqlRender'
Error: Command failed (1)

字符串
请帮助我解决这个问题.
....................................................................
rJava包安装得很好...当我运行库(rJava)给我没有错误....

6qqygrtg

6qqygrtg1#

install.packages("SqlRender",INSTALL_opts =  "--no-multiarch")

字符串
由于某种原因,检查boost 32和64位版本。即使我有正确的Java 1.8的x64版本,R仍然无法检查i386步骤。

相关问题