Hi everyone,
I am new to using Rproj, and I am stuck at reading my raw data saved in a subfolder of R project to the R script.
My peculiar experience is that when I click on the file in the Rproj. environment, it gives me an option to open the file with this code:
X4_foodbalances_usa_fao_1961_2013_01272023 <- read_excel("00_raw_data/4-foodbalances-usa-fao-1961-2013-01272023.xlsx")
But when I copy and paste this same command and try to load the data, I get this error message:
Error: path
does not exist: ‘00_raw_data/4-foodbalances-usa-fao-1961-2013-01272023.xlsx’
RStudio info:
Edition: Desktop- Mac laptop
Version: Version 2022.12.0+353 (2022.12.0+353)
OS version: macOS Monterey version 12.4
- R Version: 4.1.2 (2021-11-01)