Hello Stephanie,
I am new to the usage of R language. Also, the difficulty I am facing, is that R is installed on my window based computer while my SAS file is hosted on a UNIX server.
I will need to find a way to permit R to communicate with my Unix server.
Maybe something like that:
install.packages("curl")
require("curl")
handle <- new_handle()
handle_setopt(handle, username = "domain\username")
handle_setopt(handle, password = "secret") # If needed
request <- curl_fetch_memory("smb://host.example.com/share/file.txt", handle = handle)
contents <- rawToChar(request$content)
But it is not clear for me how to make the ls command as you have suggested and from there read the sas file
Hello, I have made some progress. I am now able to connect to our unix server using ssh_connect. Also, I am able to get the files list using this command:
filelist<-ssh_exec_wait(session,command='ls')
But the next step will be to be able to read the sas dataset.
How do we do that? Do I need absolutely to copy the sas file from the unix server to my windows server ? Is it possible to read it directly on the unix server without making a copy of it ?
Is it possible to change the working directory and if so how.