Your code might be passed between programs.
Good file and folder names will secure safe transfer
image from https://quarto.org/docs/faq/rmarkdown.html
post_hoc_analysis.qmd
2024_08_01_project_data.csv
01_import.R
raw_data
clean_data
File -> New ProjectNew Directory -> New ProjectCreate ProjectMyProject/
├── clean_data/
├── plots/
├── raw_data/
├── scripts/
├── tables/
└── MyProject.Rproj
here Packagehere Packagehere constructs paths relative to the project root.here()here() starts at the project root and constructs the path to the specified file.[1] "C:/Users/sharsted/OneDrive - Syddansk Universitet/R_projects/r4phd.sdu.dk"
[1] "C:/Users/sharsted/OneDrive - Syddansk Universitet/R_projects/r4phd.sdu.dk/raw_data"
You can seperate folder and filenames using " ",
[1] "C:/Users/sharsted/OneDrive - Syddansk Universitet/R_projects/r4phd.sdu.dk/raw_data/soldiers.csv"
Or you can seperate them using /