更新时间:2022-12-23 15:04:18
我知道这为时已晚,但是您是否尝试过将R版本切换为诊断步骤?
I know this is way too late, but did you try switching R versions as a diagnostic step?
对于RStudio 1.0.136:工具->全局选项...->常规:R版本:更改-选择32位.
For RStudio 1.0.136: Tools -> Global Options... -> General: R version: Change - Choose 32 bit.
更改版本对我有用,并提示我重新访问Java安装. (最终仅使用R32)
Changing versions worked for me and prompted me to revisit my java installation. (Ended up just using R32)
使用R64遇到相同的错误:
Got the same error with R64:
Loading required package: XLConnectJars
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: dirname(this$RuntimeLib)
error: a character vector argument expected
Error: package ‘XLConnectJars’ could not be loaded
使用计算机的默认R64在Windows 10上运行RStudio.
Was running RStudio on Windows 10 using machine's default R64.