1
votes

I am installing different packages in R but I getting following error,even though I Installed Later Available R verson

Command:

install.packages("dataset")

Error:

package ‘dataset’ is not available (for R version 3.1.1)
1
It's datasets with an s on the end, but you shouldn't need to install it. You should already have it as part of base R. See library(help = "datasets") - Rich Scriven
But I tried to Install other packages too like utils and grid with same error result? - Naseer
look at search() These are all packages that don't usually need to be installed once R itself is installed. - Rich Scriven
what does search() do? - Naseer

1 Answers

2
votes

You probably want the datasets package, with an s. That's pretty popular.

If not, the package you're looking for is probably in a different repository (not CRAN). You can install packages from other repositories with the devtools package. For example, if it's on GitHub you can type:

install.packages("devtools")
require(devtools)
install_github("packageName")