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 Project
New Directory
-> New Project
Create Project
MyProject/
├── clean_data/
├── plots/
├── raw_data/
├── scripts/
├── tables/
└── MyProject.Rproj
here
Packagehere
constructs paths relative to the project root.here()
here()
starts at the project root and constructs the path to the specified file.
::: {.cell}
[1] "/home/soon/Research/proj_aktive/r4phd.sdu.dk/raw_data"
:::
::: {.cell}
[1] "/home/soon/Research/proj_aktive/r4phd.sdu.dk/raw_data/soldiers.csv"
:::