Description Usage Arguments Value See Also Examples
On a Windows system, this returns the drive letter of the path followed by a colon. On other systems, it returns a single forward slash.
1 2 3 | get_windows_drive(x = getwd())
get_drive(x = getwd())
|
x |
A character vector of file paths. Defaults to the current directory. |
A character vector of drive paths on Windows systems, or forward slashes on Unix-based systems.
1 2 | # often takes > 5s to run
get_windows_drive(c(".", "~", r_home(), temp_dir(), "\\\\foo/bar"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.