Export an R object as a CSV or XLSX file to a specified Sharepoint location

export_sharepoint(x, site, drive, dest_path)

Arguments

x

data object in R

site

Name of sharepoint site you want to save a file to. Can be found in the URL of the Sharepoint location, e.g. for "departmentfortransportuk.sharepoint.com/sites/Rail", the site name would be Rail

drive

Name of the sharepoint drive you want to save the file to Can be found in the URL of the sharepoint location e.g. for "departmentfortransportuk.sharepoint.com/sites/Rail/RailStats", the drive name is "RailStats". Can also be found using the list_sharepoint_drives() function in this package.

dest_path

Name and location of the file path you want to save to in sharepoint. Includes the extension and any folders before the drive name