title: I have an error message "The system cannot find the path specified" when installing Caret package in R
body: <p>When I installed CARET package in R, I got following error message. </p>
  
  <pre><code>Error in install.packages : path[1]="D:\Users\hrdchs\Documents\.Rhistory\R-3.6.0\library": The system cannot find the path specified
  </code></pre>
  
  <p>I tried to find Document.Rhistory, I could not find the folder ".Rhistory" under Documents folder, I could not find any.  When I tried to manually create folder with name of ".Rhistory", system does not allow a folder name starting with ".".  I guess this may cause the problem. 
  Can you please help?</p>
  
  <p>Thanks</p>
  
  <p>In addition to doing <code>install.packages("caret")</code>, I tried following: 
  It really took a long time but still encountered the same problem. </p>
  
  <pre><code>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 &lt;- read.csv("IBMhrData.csv")
  
  
  library(caret)
  </code></pre>