R - Reading File paths in R Studio

Опубликовано: 11 Июль 2026
на канале: Joey Lee
13,571
59

Hey! Sometimes you just want to get your pesky file path, but can't manage to find a good way to do this.

Look no further!
1. Use the "File" tab and navigate over to your file,
2. then click on the file,
3. select: import dataset
4. copy the text from the top box with your file path
5. paste it into your script editor

You can also use the dataset importer, but if you want to share your script with others, it is important to flag to them that you're reading in a file from somewhere and thus we have the "myDataPath" variable as well as your "read.csv" function.