Compile Report within R Project - Paths and Structure Question

The here package enables references to file objects to be relative to the directory in which Rproj resides. This permits statements such as

readr::read_csv(here::here("Data/the_file.csv"))

to execute properly whether the R script is in the top level directory or Programs. This should obviate the need to adjust build tool settings.

1 Like