Connecting to an SMB share from R

Is there a way to connect to an SMB share directly with R? I can do it with Python so am currently using reticulate to include my Pythin code but I'd prefer a "native" R way of doing it. We don't want to mount the shares on Linux with samba as it causes lots of ownership and permissions problems.

This is how I currently do it:


smb <- smb$SMBConnection(userID, password, client_machine_name, server_name, domain, use_ntlm_v2='True', is_direct_tcp='True')
connected <- smb$connect(server_name, as.integer(445))
sharedfiles <- smb$listPath(share, path)

Any ideas of a better way of achieving this?

Thanx :slight_smile:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.