title: Installed package, but getting an error that function can't be found R
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7027288/error-could-not-find-function-in-r">Error: could not find function &hellip; in R</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to use knn function in R and have installed several packages to do so (eg. KNN, KNNgarden, iped).</p>
  
  <p>Using R-Studio, it comes across as thepackage is successfully installed (package ‘kknn’ successfully unpacked and MD5 sums checked), but when I try to use kknn (kknn(train, test, cl, k = 1, l = 0, prob = TRUE, use.all = TRUE)) I get the following error: Error: could not find function "kknn"</p>
  
  <p>I'm assuming this has something to do with my working directory. I checked and reset my WD to be the folder in R that has the packages, but to know avail. What am I doing wrong?</p>