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:
library(reticulate)
use_python("/usr/bin/python3.5")
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