Similar to file.path()
but creates a path to a file located
somewhere in a p-Cloud drive. p-Cloud is a
cloud storage system that comes with an application for Windows, MacOS or
Linux. It creates a virtual drive on the PC where files can be managed as if
they were local. However, the path to these files differ between OSes. This
function abstracts out the first part of the path for you. So, you just have
to provide the folders and files and it constructs a valid absolute path, no
matter which OS you are using. The pcloud_crypto()
function does the same
for the special Crypo Folder
that p-Cloud creates if you subscribe to the
encryption option.
pcloud(...)
pcloud_crypto(...)
A character string with the absolute path to the file or folder.
if (FALSE) { # \dontrun{
pcloud("subfolder", "file.txt")
# Only valid with the encryption option and the Crypto Folder is unlocked
pcloud_crypto("subfolder1", "subfolder2", "crypted_file.txt")
} # }