Skip to contents

This function downloads and reads a file from a shared url.

Usage

OneDrive_shared_file(url, .function, ...)

SharePoint_shared_file(url, .function, ...)

Arguments

url

A shared url from OneDrive or SharePoint.

.function

The function will read the file.

...

.function args.

References

Based on https://github.com/PaulMelloy/Download_from_OneDrive

Examples

 url = 'https://arturhgq-my.sharepoint.com/:x:/p/contact/EZ_KJ3cqtIVEh4PdXhTGy7IBpWT5_Zlp2VjYwlgVCPK4oQ?e=UZGQZt'

 OneDrive_shared_file(
    url,
    .function = readxl::read_excel
  )
#> # A tibble: 3 × 2
#>    col1  col2
#>   <dbl> <dbl>
#> 1     1     2
#> 2     3     4
#> 3     5     6