Skip to contents

Import a file from a specified Sharepoint location

Usage

import_sharepoint(file, site, drive, destination = NULL)

Arguments

file

Name and location of the file you want to extract from sharepoint. Includes the extension and any folders after the drive name

site

Name of sharepoint site you want to take a file from. 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 the file sits on. 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.

destination

Folder and filename location to download the file to. Defaults to NULL, which saves the file with it's current filename in your current working directory.