ArvadosFile | R Documentation |
ArvadosFile class represents a file inside Arvados collection.
file = ArvadosFile$new(name)
Name of the file.
Returns name of the file.
Returns file path relative to the root.
Read file content.
Write to file (override current content of the file).
Get connection opened in "read" or "write" mode.
Write connections content to a file (override current content of the file).
Removes ArvadosFile or Subcollection specified by name from the subcollection.
Returns file size in bytes.
Moves file to a new location inside collection.
Copies file to a new location inside collection.
## Not run: myFile <- ArvadosFile$new("myFile") myFile$write("This is new file content") fileContent <- myFile$read() fileContent <- myFile$read("text") fileContent <- myFile$read("raw", offset = 8, length = 4) #Write a table: arvConnection <- myFile$connection("w") write.table(mytable, arvConnection) arvadosFile$flush() #Read a table: arvConnection <- myFile$connection("r") mytable <- read.table(arvConnection) myFile$move("newFolder/myFile") myFile$copy("newFolder/myFile") ## End(Not run)