【发布时间】:2019-06-10 00:50:22
【问题描述】:
当我在 R 中安装 CARET 包时,我收到以下错误消息。
Error in install.packages : path[1]="D:\Users\hrdchs\Documents\.Rhistory\R-3.6.0\library": The system cannot find the path specified
我试图找到 Document.Rhistory,我在 Documents 文件夹下找不到文件夹“.Rhistory”,我找不到任何文件。当我尝试手动创建名称为“.Rhistory”的文件夹时,系统不允许文件夹名称以“.”开头。我想这可能会导致问题。 你能帮忙吗?
谢谢
除了install.packages("caret"),我还尝试了以下操作:
确实花了很长时间,但仍然遇到了同样的问题。
install.packages("caret",
repos = "http://cran.r-project.org",
dependencies = c("Depends", "Imports", "Suggests"))
setwd("D:/Users/hrdchs/Documents/0 SHR/R/Attrition Analysis/IBM attrition data set")
HRdata <- read.csv("IBMhrData.csv")
library(caret)
【问题讨论】:
-
您不应该寻找文件夹“.Rhistory”,您应该在 hrdchs 文件夹中寻找 Documents.Rhistory 文件夹。您不能创建名称以“.”开头的文件夹