Search code examples
rpackageinstall.packages

`leaps` package in R still exists? or is it under a new name?


I'm attempting to install the R package leaps. I'm not doing anything out of the ordinary, just a simple package installation, but it appears the package doesn't exist or can't be found.

> install.packages(leaps)
Error in install.packages : object 'leaps' not found

I was wondering if this is a new issue? I'm installing using R Studio on a PC for clarification.


Solution

  • Try

    install.packages("leaps")
    

    As an explanation, this is quoting the name of the package, as it doesn't exist as a variable in your workspace. To further confuse things, non-standard evaluation in R lets you sometimes use unquoted column names (eg in ggplot), but this is not one of those times.