Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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)