pcloud: Create the path to a file in the p-Cloud drive

Description Usage Arguments Value See Also Examples

View source: R/pcloud.R

Description

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.

Usage

1
2
3

Arguments

...

The folder, subfolder and file to form the path, starting to the root of the p-Cloud drive, or the Crypto Folder.

Value

A character string with the absolute path to the file or folder.

See Also

system_file(), source_clipboard(), file.path()

Examples

1
2
3
4
5
6
## Not run: 
pcloud("subfolder", "file.txt")
# Only valid with the encryption option and the Crypto Folder is unlocked
pcloud_crypto("subfolder1", "subfolder2", "crypted_file.txt")

## End(Not run)

svMisc documentation built on Oct. 12, 2021, 1:08 a.m.