Copy this bookmark:



description:


tags:



bookmark detail

rprojroot: Finding files in project subdirectories
The rprojroot package solves a seemingly trivial but annoying problem that occurs sooner or later in any largish project: How to find files in subdirectories? Ideally, file paths are relative to the project root.
Unfortunately, we cannot always be sure about the current working directory: For instance, in RStudio it’s sometimes:
the project root (when running R scripts),
a subdirectory (when building vignettes),
again the project root (when executing chunks of a vignette).
basename(getwd())
## [1] "vignettes"
In some cases, it’s even outside the project root.
This vignette starts with a very brief summary that helps you get started, followed by a longer description of the features.
R_packages  R  project_management  productivity_tool  to_try  Programming  Programs_to_use 
may 2017 by hallucigenia
view in context