简体   繁体   中英

Conflict in R package: methods and package:base

I am trying to learn R programming basics.But I have bumped into a problem while trying to use already installed packages 'nycflights13'. When I run library(flights), it gives error.

library(flights) Error in library(flights) : there is no package called 'flights'

When I run conflicts(detail=TRUE), it displays below message:

conflicts(detail=TRUE) $ package:methods [1] "body<-" "kronecker"

$ package:base [1] "body<-" "kronecker"

I tried googling a lot.But could not find a solution. Can you please tell me what I am supposed to do to get rid of the conflict so that I can use the 'flights' data frame for practice?

Are you looking to load the flights dataset from the nycflights13 package?

library(nycflights13)
data(flights)

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