These packages are used to read various files.
readr package is used to read rectangular text data such as a 'csv' file. readxl package has a function to read excel file, and foreign package has a function to read data sotred by "S", "SAS", and "SPSS", "Stata".
You can see further readings in the following link. readr , readxl, and foreign .