sp_defaults {tntpr} | R Documentation |
Set default Sharepoint settings for a session
Description
Sets default site and drive for using the other sp_*()
functions.
Usage
sp_defaults(site = NULL, drive = NULL)
Arguments
site |
Site identifier. Can be the site_name, site_url, site_id, or an ms_site object. If not provided, uses the current stored default site if it exists. |
drive |
Name of the drive within the site. 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. |
Value
No return value
See Also
sp_list()
, sp_read()
, sp_write()
, sp_site()
, sp_drive()
Examples
# Set default site
sp_defaults(site = "Data Analytics")
# List drives from the default site
sp_list_drives()
# List files/folders in the default site and drive.
# Since no default drive was added, uses the first listed drive for the site.
sp_list()
[Package tntpr version 1.2.1 Index]