> install.packages("psych")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/Ali Basuony/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘mnormt’ is not available
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/psych_1.9.12.31.zip'
Content type 'application/zip' length 3800520 bytes (3.6 MB)
downloaded 3.6 MB
package ‘psych’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Ali Basuony\AppData\Local\Temp\RtmpeYduMH\downloaded_packages
> install.packages(‘mnormt’)
Error: unexpected input in "install.packages(‘"
> install.packages("mnormt")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/Ali Basuony/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘mnormt’ is not available (for R version 3.6.3)
答案 0 :(得分:0)
当前的mnormt
软件包取决于R版本4.0.0或更高版本。您需要更新R才能安装它,或者安装较旧的版本。要安装旧版本,您将需要Rtools。
答案 1 :(得分:0)
问题在这里描述:
警告:Rtools是构建R软件包所必需的,但当前尚未安装。请 在继续之前,请下载并安装适当版本的Rtools: https://cran.rstudio.com/bin/windows/Rtools/
因此,您有两种选择:
您需要Rtools才能从Windows上的源代码构建软件包。因此,请访问此页面:
并将适当的Rtools版本下载到您的R版本(您可能拥有R 3.6.3
时似乎是Rtools35)。请注意,硬盘驱动器上大约有1 GB。
或者,如果您不想安装Rtools,则可以尝试安装二进制软件包,而不必担心从源代码构建它。然后运行:
install.packages("psych", type = "binary", dependencies = TRUE)
install.packages("mnormt", type = "binary", dependencies = TRUE)