X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7ff006ea5351259abe8edc89520996513652c147..8afc85aabb9563da4de17b0b5f7d4fe574e9ad8d:/sdk/R/man/Subcollection.Rd diff --git a/sdk/R/man/Subcollection.Rd b/sdk/R/man/Subcollection.Rd index e644e02168..df0970b30f 100644 --- a/sdk/R/man/Subcollection.Rd +++ b/sdk/R/man/Subcollection.Rd @@ -1,14 +1,47 @@ % Generated by roxygen2: do not edit by hand % Please edit documentation in R/Subcollection.R -\docType{data} \name{Subcollection} \alias{Subcollection} -\title{Arvados SubCollection Object} -\format{An object of class \code{R6ClassGenerator} of length 24.} -\usage{ -Subcollection -} +\title{Subcollection} \description{ -Update description +Subcollection class represents a folder inside Arvados collection. +It is essentially a composite of ArvadosFiles and other Subcollections. +} +\section{Usage}{ + +\preformatted{subcollection = Subcollection$new(name)} +} + +\section{Arguments}{ + +\describe{ + \item{name}{Name of the subcollection.} +} +} + +\section{Methods}{ + +\describe{ + \item{getName()}{Returns name of the subcollection.} + \item{getRelativePath()}{Returns subcollection path relative to the root.} + \item{add(content)}{Adds ArvadosFile or Subcollection specified by content to the subcollection.} + \item{remove(name)}{Removes ArvadosFile or Subcollection specified by name from the subcollection.} + \item{get(relativePath)}{If relativePath is valid, returns ArvadosFile or Subcollection specified by relativePath, else returns NULL.} + \item{getFileListing()}{Returns subcollections file content as character vector.} + \item{getSizeInBytes()}{Returns subcollections content size in bytes.} + \item{move(newLocation)}{Moves subcollection to a new location inside collection.} +} +} + +\examples{ +\dontrun{ +myFolder <- Subcollection$new("myFolder") +myFile <- ArvadosFile$new("myFile") + +myFolder$add(myFile) +myFolder$get("myFile") +myFolder$remove("myFile") + +myFolder$move("newLocation/myFolder") +} } -\keyword{datasets}