Learn R Programming

tntpr (version 1.2.1)

sp_create_folder: Create Sharepoint Folder

Description

Wrapper around the $create_folder() method from Microsoft365R::ms_drive

Usage

sp_create_folder(folder_path, site = NULL, drive = NULL)

Value

returns folder_path invisibly

Arguments

folder_path

Path to the new folder

site

Site identifier. Can be the site name, id, URL, or an ms_site object. If no site identifier is provided, uses the stored default site if it exists.

drive

Drive identifier. Can be the drive name, id, or an ms_drive object. If site is provided but drive is not, uses the first drive of the provided site. If neither is provided, uses the stored default drive if it exists.

Examples

Run this code
if (FALSE) { # interactive()

# Set site/drive defaults
sp_defaults("Data Analytics")

# Create a folder
sp_create_folder("new/folder")
}

Run the code above in your browser using DataLab