Sets default site and drive for using the other sp_*()
functions.
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.
Examples
if (FALSE) { # interactive()
# 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()
}