Description Usage Arguments Value Note Examples
Gets the current RStudio project directory.
1 | rstudio_project_dir(sep = c("/", "\\"))
|
sep |
String separator between directory levels in the output. |
A string giving the path to the current RStudio project directory, or character vector with length zero if you are running RStudio without a project open.
This only works when your IDE is RStudio. Otherwise an error is thrown.
1 | assertive.base::dont_stop(rstudio_project_dir())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.