Description Usage Arguments Details Value Examples
Using a source file object, this function returns the file connection object. m365filer has file connection objects built for cloud files in the cloud_file object. This object is abstracted to sharepoint files and onedrive files, both of which sit on the ms_drive object from the Microsoft365R package.
1 | get_file_connection(file, drive = NULL)
|
file |
A source file object |
drive |
An ms_drive object |
These objects are built on top of file connections, which allows you to interface with files much the same as a local file, by simply providing to the file parameter of reader or writer functions. Files are read or written directly to the cloud, and temporary files that clean up with your R sessions are leveraged to minimize the amount of interface that your local device has to do with the cloud
A cloud_file object or file path
1 2 3 4 5 6 7 8 | ## Not run:
x <- source_file("Documents/test.csv", "onedrive")
mtcars %>% write.csv(get_file_connection(x))
y <- read.csv(get_file_connection(x))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.