Expand a path name, for example by replacing a leading tilde by the user's home directory (if defined on that platform).
character vector containing one or more path names.
(These details are for a Unix-alike: the details differ on Windows.)
On most builds of R a leading
~user will expand to the home
user, but not on builds without
installed. (In an interactive session
will report if
readline is available.)
The ‘path names’ need not exist nor be valid path names but they do need to be representable in the session encoding.
A character vector of possibly expanded path names: where the home directory is unknown or none is specified the path is returned unchanged.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.