Hi @valeri, thank you for the reply. For some reason I am not able to get here to work as I expect it to with a shiny app. When I add the following lines to the default shiny app created by rstudio
library(shiny)
# add these 4 lines after library(shiny)
library(here)
here::set_here()
print(getwd())
here::dr_here()
Interactively I get this result:
> runApp()
Created file .here in /Users/schuffr/Documents/Work/RStudio/OCTRI/CRIReporting/r/testing_here
[1] "/Users/schuffr/Documents/Work/RStudio/OCTRI/CRIReporting/r/testing_here"
here() starts at /Users/schuffr/Documents/Work/RStudio/OCTRI/CRIReporting, because it contains a file matching `[.]Rproj$` with contents matching `^Version: ` in the first line
notice that is seems .here file is not detected even though I manually set the working directory to the "testing_here" directory first.
Either I am doing something wrong, or maybe here doesn't look in the current directory first for the .here file ... or maybe something else.