>我需要将R连接到Oracle数据库
>按照
https://cran.r-project.org/web/packages/ROracle/INSTALL上的说明,确切地说,一步一步
>获得以下错误:
库( ‘ROracle’)
inDL中的错误(x,as.logical(local),as.logical(now),…):无法加载共享对象’C:/Users/Daniel/R/winlibrary/3.2/ROracle/libs/x64/ ROracle.dll“:
LoadLibrary失败:%1不是有效的Win32应用程序.
library('ROracle')
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Users/Daniel/R/winlibrary/3.2/ROracle/libs/x64/ROracle.dll':
LoadLibrary failure: %1 is not a valid Win32 application.
我不知道从哪里开始解决这个问题.这是libPath()的结果
> .libPaths()
"C:/Users/Daniel/R/win-library/3.2" "C:/Program Files/R/R-3.2.3/library"
Windows 10,R版本3.2.3
最佳答案 这两个步骤应该为您解决:
>将“Path”环境变量重命名为“PATH”
>只有在环境变量中设置Oracle Instant Client后才能安装ROracle软件包. (再次运行install.packages())