简体   繁体   English

为 MAC 在 R 4.0.3 中加载 SDSFoundations package 时出错

[英]Error loading SDSFoundations package in R 4.0.3 for MAC

I installed R on my mac (Version 4.0.3) and after this, I downloaded the SDSFoundations package to the desktop (.tar file).我在我的 Mac(版本 4.0.3)上安装了 R,之后,我将 SDSFoundations package 下载到桌面(.tar 文件)。 I installed the package with the following command: install.packages("~/Desktop/SDSFoundations_1.1_R_x86_64-apple-darwin10.8.0.tar", repos = NULL, type = 'source') [I added the 'type = 'source' because I was getting an error that repos = NULL could not be used with type = 'binary'] The package installed successfully.我使用以下命令安装了 package: install.packages("~/Desktop/SDSFoundations_1.1_R_x86_64-apple-darwin10.8.0.tar", repos = NULL, type = 'source') ' 因为我收到一个错误,repos = NULL 不能与 type = 'binary' 一起使用] package 安装成功。

PROBLEM: when I tried to load the package with library(SDSFoundations) I am getting the error: package or namespace load failed for 'SDSFoundations': package 'SDSFoundations' was installed before R 4.0.0: please re-install it PROBLEM: when I tried to load the package with library(SDSFoundations) I am getting the error: package or namespace load failed for 'SDSFoundations': package 'SDSFoundations' was installed before R 4.0.0: please re-install it

.libPaths() points to /Library/Frameworks/R.framework/Versions/4.0/Resources/library find.package("SDSFoundations") gives me /Library/Frameworks/R.framework/Versions/4.0/Resources/library/SDSFoundations .libPaths()指向/Library/Frameworks/R.framework/Versions/4.0/Resources/library find.package("SDSFoundations")给我/Library/Frameworks/R.framework/Versions/4.0/Resources/library/SDSFoundations

I do not understand what I am doing wrong.我不明白我做错了什么。 R 4.0.3 is the first R version I have ever installed on this system and right after this, I installed the SDSFoundations package. R 4.0.3 是我在这个系统上安装的第一个 R 版本,在此之后,我安装了 SDSFoundations package。 I do not understand why I am not able to load the package.我不明白为什么我无法加载 package。 Please help!请帮忙!

So the past few days, I had the same problem and when I hit the所以过去几天,我遇到了同样的问题,当我点击

installed_packages()安装包()

SDSFoundations -------- "3.2.3" SDS基础--------《3.2.3》

it showed me that SDSFoundations never upgraded from R 3.2.3.它向我展示了 SDSFoundations 从未从R 3.2.3 升级。

The best thing to do is install the R version before 4.0.0 side to side with your newer versions and you can shift to the versions in the Rstudio.最好的办法是将 4.0.0 之前的 R 版本与您的较新版本并排安装,您可以切换到 Rstudio 中的版本。 To be precise open the window from the TOOL/Global Options..., and from that window, you can choose your desired versions from the tool RGeneral/R version.准确地说,从 TOOL/Global Options... 中打开 window,然后从 window 中,您可以从工具 RGeneral/R 版本中选择所需的版本。 At last, it will ask you to restart the Rstudio every time you change it but in the end, it worked perfectly for me.最后,每次更改时它都会要求您重新启动 Rstudio,但最终它对我来说非常有效。 Hope this will help anyone who needs this info.希望这将帮助任何需要此信息的人。 ;) ;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM