Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Description
Get the content of a file from the working directory of the remote R session.
Usage
getRemoteFile(filename, as = "text")
Arguments
filename
Name of the file in the remote working directory.
as
The content type of the file ("text" or "raw"). For binary files use 'raw'.
Details
Complete documentation: https://go.microsoft.com/fwlink/?linkid=836352
Value
raw vector of bytes if as="raw"
. Otherwise, the text content of the file,
or NULL
if the file content cannot be retrieved.
See Also
Examples
## Not run:
content<-getRemoteFile("test.csv")
raw_content<-getRemoteFile("test.png", as="raw")
fh = file("test.png", "wb")
writeBin(raw_content, fh)
close(fh)
## End(Not run)