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
60 collection$printFileContent()
62 #of if you just want a list of relative paths:
64 collection$printFileContent(pretty = FALSE)
66 --------------------------------------------------------------------------------------------------------------------------------
68 #This will return ArvadosFile or Subcollection from internal tree-like structure.
70 arvadosFile <- collection$get("location/to/my/file.cpp")
74 arvadosSubcollection <- collection.get("location/to/my/directory/")
76 --------------------------------------------------------------------------------------------------------------------------------
78 #Read whole file or just a portion of it.
80 arvadosFile$read(offset = 1024, length = 512)
82 --------------------------------------------------------------------------------------------------------------------------------