I\'m trying to implement R in the workplace and save a bit of time from all the data churning we do.
A lot of files we receive are sent to us via SFTP as they contai
I too was having problems specifying the port options when using the getURI()
and getURL()
functions.
In order to specify the port, you simply add the port as port = ####
instead of port(####)
. For example:
data <- getURI(url = url,
userpwd = userpwd,
port = 22)
Now, like @MarkThomas pointed out, whenever you get an encodoing error, try getBinaryURL()
instead of getURI()
. In most cases, this will allow you to download SAS
files as well as .csv
files econded in UTF-8
or LATIN1
!!