connector.sharepoint 0.0.6
Bug Fixes
- Fix README.md documentation to use correct factory function
connector_sharepoint()instead of deprecatedConnectorSharepoint()constructor
Enhancement
- Replace
optionspackage withzephyrpackage for configuration management - Update
ConnectorSharepointclass to use""as a default value for folder. Also, add private field called.conn. - Update sharepoint methods so they use only
ms_drive()class fromMicrosoft365Rpackage. - Add logging support for SharePoint connector operations
- Add
log_read_connector.ConnectorSharepoint()method for logging read operations - Add
log_write_connector.ConnectorSharepoint()method for logging write operations - Add
log_remove_connector.ConnectorSharepoint()method for logging delete operations - Logging functionality uses
whirlpackage for structured logging - Log messages include file name and SharePoint site path information
- Add
- Add vignette documenting basic connector methods
- Add
vignettes/articles/Consistent-API.Rmdexplaining connector package method return values - Provides detailed explanations of each method’s purpose and return value
- Includes SharePoint-specific considerations for authentication and permissions
- Add
- Update configuration example file in
inst/config/example_yaml.yamlto reflect new parameter names and defaults - Update logo
Breaking Changes
Parameter Renaming for File Transfer Methods
The following methods have had their parameters renamed to provide consistent src (source) and dest (destination) naming:
-
upload_cnt():file→src,name→dest -
download_cnt():name→src,file→dest -
upload_directory_cnt():dir→src,name→dest -
download_directory_cnt():name→src,dir→dest
Migration Examples
Before:
# Upload file
cs$upload_cnt(file = "local_file.csv", name = "remote_file.csv")
# Download file
cs$download_cnt(name = "remote_file.csv", file = "local_file.csv")
# Upload directory
cs$upload_directory_cnt(dir = "local_folder", name = "remote_folder")
# Download directory
cs$download_directory_cnt(name = "remote_folder", dir = "local_folder")After:
# Upload file
cs$upload_cnt(src = "local_file.csv", dest = "remote_file.csv")
# Download file
cs$download_cnt(src = "remote_file.csv", dest = "local_file.csv")
# Upload directory
cs$upload_directory_cnt(src = "local_folder", dest = "remote_folder")
# Download directory
cs$download_directory_cnt(src = "remote_folder", dest = "local_folder")