简体   繁体   中英

install.packages(“methods”) failed for R 3.0.1

I try to install R package "methods" over R 3.0.1:

> install.packages("methods")
> Warning message:
package ‘methods’ is not available (for R version 3.0.1)

Is there any way to install 'methods' over R 3.0.1 or should I switch to R 3.0.0?

Thank you

methods is part of base R, you don't have to install it with install.packages , as it is already bundled with your R 3.0.1 installation.

You will see that loading the package will not provide any error :

library(methods)

But you don't even have to do that, as it is already loaded by default in your R session.

methods is a base package , along with the following packages

  • base
  • compiler
  • datasets
  • graphics
  • grDevices
  • grid
  • methods
  • parallel
  • splines
  • stats
  • stats4
  • tcltk

None of these packages are on CRAN, they only exist as part of base R. See also the R FAQ Section 5.1.1 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM