0

I am getting error while installing package KernSmooth. How can I install this pacakge ?

Getting warning messages on not able to access index for repository and one with package not available. Below are example warning message-

Warning: unable to access index for repository http://lib.stat.cmu.edu/R/CRAN/src/contrib Warning message: package ‘KernSmooth’ is not available (for R version 3.2.1)

HaveNoDisplayName
  • 8,291
  • 106
  • 37
  • 47
VijayR
  • 1
  • 2
  • Are you using install.packages("KernSmooth"), or are you downloading from the folder directly. install.packages("KernSmooth") should work. – johnny838 Jul 13 '15 at 14:59
  • I am using install.packages("KernSmooth") – VijayR Jul 13 '15 at 15:00
  • Okay I just tried install.packages("KernSmooth"), and it worked for me on both R version 3.1.1 and R version 3.2.0. Perhaps it is because of that warning package 'KernSmooth' is not available (for R version 3.2.1), which is quite strange that a newer version of R would not support it. – johnny838 Jul 13 '15 at 15:03
  • If install.packages doesn't work, perhaps try installing it from github directly using devtools. Not sure if this is the correct KernSmooth: https://github.com/cran/KernSmooth but if it is then you would need to install devtools (or library(devtools) if you already have it). Then do install_github("cran/KernSmooth") – johnny838 Jul 13 '15 at 15:06
  • Thanks for your response. may be i am being foolish running it in R console. I should run it in RStudio? just installed RStudio and ran it ..with following error: > install.packages("KernSmooth") Warning in install.packages : unable to access index for repository /src/contrib – VijayR Jul 13 '15 at 15:08
  • Hmm, I've never run into this problem, so sorry I'm not that helpful right now. This post might be: http://stackoverflow.com/questions/7258639/problem-loading-the-plyr-package since the problem seems similar if not the same as your current one. – johnny838 Jul 13 '15 at 15:20
  • Problem was in my devtools; i installed it properly chaning the CRAM mirror and after that KernSmooth got installed properly. Thanks – VijayR Jul 17 '15 at 19:22

0 Answers0