Import/Export documents to/from Sharepoint Server with R & Python by creating put requests.
First, change the directory paths in scripts and user credentials with sharepoint domain, change the upload path (with https:\\ prefix) then run script through python.