我真的很困难,需要一些帮助。
安装 R 3.5.1 后,我在 Power BI Desktop 中之前正常工作的 R 可视化效果上收到此错误消息
"Error: package or namespace load failed for 'ggplot2': package 'scales' was installed by an R version with different internals; it needs to be reinstalled for use with this R version."
我已经尝试过:
重新安装 R 3.5.1
重新安装 RStudio
重新安装 ggplot2 和秤包
重新安装所有软件包
重新安装 Power BI Desktop
还是不行。
注意事项:
在安装 R 3.5.1 之前,我的可视化效果运行良好
我的可视化在其他电脑上运行良好
当我在 RStudio 上运行代码时,没有收到任何错误
有什么想法吗?
最佳答案
我会尝试在你的视觉效果中运行它:
.libPath()
library(ggplot2)
它会给你一条错误消息,但也应该有 .libPath()
的输出,如下所示:
[1] "C:/Users/.../Documents/R/win-library/3.4" [2] "C:/Program Files/R/R-3.4.3/library"
然后我会尝试将 ggplot 安装(或复制现有文件夹)到这些目录之一。
关于r - PowerBI Desktop 和 R 错误 : package or namespace load failed for 'ggplot2' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53676477/