R: Reading multiple .dat files as a list and saving as .RDATA files : I want to import multiple `.DAT` files from a directory and make them as a list elements and then save them as `.RDATA` files.

I tried the following code

    files <- dir(pattern = "*.DAT")
    library(tidyverse)
    Data1 <- 
      files %>%
        map(~ read.table(file = ., fill = TRUE))

which works sometimes and fails others. The files are also available on [this link][1]. I want to read all files and them save them as `.RDATA` with the same names. Any help will be highly appreciated. Thanks




  [1]: https://www2.stat.duke.edu/courses/Spring03/sta113/Data/Hand/Hand.html