.locate_project | R Documentation |
gets a reverse directory listing and then finds the lowest directory that contains an indication of there being a project in the directory this should work where the 'here' package does not (particularly when knitting in CRAN checks for example, or running in a non package project)
.locate_project(inputFile = .this_script())
inputFile |
a file to check the project root of. |
the file path of the root of the project
try({
.locate_project()
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.