Package here

  • Package here website
  • The package here helps with easy file referencing and building file paths.
  • After installing the package and loading the library you can:
    • See the top level directory with here::here()
    • Use here::here('dir', 'file.txt') to build a path relative to the top-level directory in order to build the full path to a file.
      • For example, if you want to import a csv file you can use the function here to indicate the relative path of the file you want to read:
  here("directory", "your_file.csv")