Error in loadNamespace(x) : there is no package called ‘readr’

Problem: read operation in R language returns next message or any other similar:

unused argument (header = TRUE)

Solution: it could be for at least two reasons:

  1. header = TRUE is not correctly written, TRUE must be in uppercase or you can use just a ‘T’.
    Example: read.csv(filename, header = TRUE) or read.csv(filename, header = T) are correct.
  2. You are using something like readr::read_csv(filename, header = TRUE), just change readr::read_csv to read.csv.

Source: R documentation

For more interesting tutorials & guides just check them HERE.

Leave a Reply

Your email address will not be published. Required fields are marked *