View source: R/directoryName.R
directoryName | R Documentation |
The base function dirname
may fail if the path passed is too
long. This version checks if the call of dirname()
failed and gives
a clear error message.
directoryName(x)
x |
a file path of which to get the path to the directory only |
path to directory of file path given in x
## Not run:
directoryName(repeated("verylongpath/", 50))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.