RStudio provides several wizards to help load a data file. For instance, you could click
-
File -> Import Dataset -> From Text (readr) to load a CSV text file
-
File -> Import Dataset -> From Excel to load an Excel file
If you're looking for more information about loading data into R, here's a great intro: