5 --------------------------------------------------------------------------------------------------------------------------------
9 arv <- Arvados$new("insert_token", "insert_host_name")
11 --------------------------------------------------------------------------------------------------------------------------------
15 arv$getCollection("uuid")
17 --------------------------------------------------------------------------------------------------------------------------------
21 collectionList <- arv$listCollections(list("uuid", "=" "aaaaa-bbbbb-ccccccccccccccc"), limit = 10, offset = 2)
23 --------------------------------------------------------------------------------------------------------------------------------
27 deletedCollection <- arv$deleteCollection("uuid")
29 --------------------------------------------------------------------------------------------------------------------------------
33 updatedCollection <- arv$updateCollection("uuid", list(collection = list(name = "new_name", description = "new_desciption")))
35 --------------------------------------------------------------------------------------------------------------------------------
39 updatedCollection <- arv$createCollection("uuid", list(collection = list(name = "new_name", description = "new_desciption")))
41 --------------------------------------------------------------------------------------------------------------------------------
43 --------------------------------------------------------------------------------------------------------------------------------
45 #Collection manipulation:
47 --------------------------------------------------------------------------------------------------------------------------------
49 --------------------------------------------------------------------------------------------------------------------------------
51 #Create collection object:
53 arv <- Arvados$new("insert_token", "insert_host_name")
54 collection <- Collection$new(arv, "uuid")
56 --------------------------------------------------------------------------------------------------------------------------------
58 #Print content of the collection (directory/folder tree structure)
60 collection$printFileContent()
62 --------------------------------------------------------------------------------------------------------------------------------
64 #Get file/folder content as character vector
66 collection$getFileContent()
68 --------------------------------------------------------------------------------------------------------------------------------
70 #This will return ArvadosFile or Subcollection from internal tree-like structure.
72 arvadosFile <- collection$get("location/to/my/file.cpp")
76 arvadosSubcollection <- collection.get("location/to/my/directory/")
78 --------------------------------------------------------------------------------------------------------------------------------
80 #Read whole file or just a portion of it.
82 fileContent <- arvadosFile$read(offset = 1024, length = 512)
84 --------------------------------------------------------------------------------------------------------------------------------
86 #Get ArvadosFile or Subcollection size
88 size <- arvadosFile$getSizeInBytes()
89 size <- arvadosSubcollection$getSizeInBytes()
91 --------------------------------------------------------------------------------------------------------------------------------