here package: https://cran.r-project.org/web/packages/here/index.html
Challenge: Code is run in code subfolder. here things this is the base folder. Subsequent stuff breaks
Solution: Create empty .here file in root directory using Post-Install Script:
- Go to
Environment->Post-Install Script->Edit Post-Install Script - Add
touch .herein a new lie at the end of the file herefinds the file and recognizes hte root folder as root folder. Done