Description Usage Arguments Details Value See Also Examples
OneDrive and Sharepoint Online clients
1 2 3 4 5 | personal_onedrive(...)
business_onedrive(tenant = "common", ...)
sharepoint_site(site_url = NULL, site_id = NULL, tenant = "common", ...)
|
... |
Optional arguments to be passed to |
tenant |
For |
site_url, site_id |
For |
These functions provide easy access to OneDrive and SharePoint in the cloud. They work by loading your existing Microsoft Graph login, and if that isn't found, creating a new one using any arguments passed in ....
Use personal_onedrive to access the drive for your personal account, and business_onedrive to access your OneDrive for Business. For business_onedrive and sharepoint_site to work, your organisation must have an appropriate Microsoft 365 license.
The default "common" tenant for business_onedrive and sharepoint_site attempts to detect your actual tenant from your currently logged-in account. This may not always succeed, for example if you have a personal account that is also a guest account in a tenant. In this case, supply the actual tenant name.
An object of class ms_drive.
ms_drive, AzureGraph::create_graph_login
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
personal_onedrive()
odb <- business_onedrive("mycompany")
odb$list_items()
site <- sharepoint_site("https://mycompany.sharepoint.com/sites/my-site-name")
site$get_drive()$list_items()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.