20660: Add devtools::check to run_test.R
[arvados.git] / sdk / R / man / ArvadosFile.Rd
index 8275b7b6003fd1a540f9047f7f483d6f6267528d..81c25af5f14323f880e4f9235dbde984e5d7ac0e 100644 (file)
@@ -12,97 +12,117 @@ ArvadosFile class represents a file inside Arvados collection.
 ## Method `ArvadosFile$new`\r
 ## ------------------------------------------------\r
 \r
+\dontrun{\r
 myFile   <- ArvadosFile$new("myFile")\r
+}\r
 \r
 ## ------------------------------------------------\r
 ## Method `ArvadosFile$getName`\r
 ## ------------------------------------------------\r
 \r
+\dontrun{\r
 arvadosFile$getName()\r
+}\r
 \r
 ## ------------------------------------------------\r
 ## Method `ArvadosFile$getFileListing`\r
 ## ------------------------------------------------\r
 \r
+\dontrun{\r
 arvadosFile$getFileListing()\r
+}\r
 \r
 ## ------------------------------------------------\r
 ## Method `ArvadosFile$getSizeInBytes`\r
 ## ------------------------------------------------\r
 \r
+\dontrun{\r
 arvadosFile$getSizeInBytes()\r
+}\r
 \r
 ## ------------------------------------------------\r
 ## Method `ArvadosFile$read`\r
 ## ------------------------------------------------\r
 \r
+\dontrun{\r
 collection <- Collection$new(arv, collectionUUID)\r
 arvadosFile <- collection$get(fileName)\r
 fileContent <- arvadosFile$read("text")\r
+}\r
 \r
 ## ------------------------------------------------\r
 ## Method `ArvadosFile$connection`\r
 ## ------------------------------------------------\r
 \r
+\dontrun{\r
 collection <- Collection$new(arv, collectionUUID)\r
 arvadosFile <- collection$get(fileName)\r
 arvConnection <- arvadosFile$connection("w")\r
+}\r
 \r
 ## ------------------------------------------------\r
 ## Method `ArvadosFile$flush`\r
 ## ------------------------------------------------\r
 \r
+\dontrun{\r
 collection <- Collection$new(arv, collectionUUID)\r
 arvadosFile <- collection$get(fileName)\r
 myFile$write("This is new file content")\r
 arvadosFile$flush()\r
+}\r
 \r
 ## ------------------------------------------------\r
 ## Method `ArvadosFile$write`\r
 ## ------------------------------------------------\r
 \r
+\dontrun{\r
 collection <- Collection$new(arv, collectionUUID)\r
 arvadosFile <- collection$get(fileName)\r
 myFile$write("This is new file content")\r
+}\r
 \r
 ## ------------------------------------------------\r
 ## Method `ArvadosFile$move`\r
 ## ------------------------------------------------\r
 \r
+\dontrun{\r
 arvadosFile$move(newPath)\r
+}\r
 \r
 ## ------------------------------------------------\r
 ## Method `ArvadosFile$copy`\r
 ## ------------------------------------------------\r
 \r
+\dontrun{\r
 arvadosFile$copy("NewName.format")\r
 }\r
+}\r
 \section{Methods}{\r
 \subsection{Public methods}{\r
 \itemize{\r
-\item \href{#method-new}{\code{ArvadosFile$new()}}\r
-\item \href{#method-getName}{\code{ArvadosFile$getName()}}\r
-\item \href{#method-getFileListing}{\code{ArvadosFile$getFileListing()}}\r
-\item \href{#method-getSizeInBytes}{\code{ArvadosFile$getSizeInBytes()}}\r
-\item \href{#method-get}{\code{ArvadosFile$get()}}\r
-\item \href{#method-getFirst}{\code{ArvadosFile$getFirst()}}\r
-\item \href{#method-getCollection}{\code{ArvadosFile$getCollection()}}\r
-\item \href{#method-setCollection}{\code{ArvadosFile$setCollection()}}\r
-\item \href{#method-getRelativePath}{\code{ArvadosFile$getRelativePath()}}\r
-\item \href{#method-getParent}{\code{ArvadosFile$getParent()}}\r
-\item \href{#method-setParent}{\code{ArvadosFile$setParent()}}\r
-\item \href{#method-read}{\code{ArvadosFile$read()}}\r
-\item \href{#method-connection}{\code{ArvadosFile$connection()}}\r
-\item \href{#method-flush}{\code{ArvadosFile$flush()}}\r
-\item \href{#method-write}{\code{ArvadosFile$write()}}\r
-\item \href{#method-move}{\code{ArvadosFile$move()}}\r
-\item \href{#method-copy}{\code{ArvadosFile$copy()}}\r
-\item \href{#method-duplicate}{\code{ArvadosFile$duplicate()}}\r
+\item \href{#method-ArvadosFile-new}{\code{ArvadosFile$new()}}\r
+\item \href{#method-ArvadosFile-getName}{\code{ArvadosFile$getName()}}\r
+\item \href{#method-ArvadosFile-getFileListing}{\code{ArvadosFile$getFileListing()}}\r
+\item \href{#method-ArvadosFile-getSizeInBytes}{\code{ArvadosFile$getSizeInBytes()}}\r
+\item \href{#method-ArvadosFile-get}{\code{ArvadosFile$get()}}\r
+\item \href{#method-ArvadosFile-getFirst}{\code{ArvadosFile$getFirst()}}\r
+\item \href{#method-ArvadosFile-getCollection}{\code{ArvadosFile$getCollection()}}\r
+\item \href{#method-ArvadosFile-setCollection}{\code{ArvadosFile$setCollection()}}\r
+\item \href{#method-ArvadosFile-getRelativePath}{\code{ArvadosFile$getRelativePath()}}\r
+\item \href{#method-ArvadosFile-getParent}{\code{ArvadosFile$getParent()}}\r
+\item \href{#method-ArvadosFile-setParent}{\code{ArvadosFile$setParent()}}\r
+\item \href{#method-ArvadosFile-read}{\code{ArvadosFile$read()}}\r
+\item \href{#method-ArvadosFile-connection}{\code{ArvadosFile$connection()}}\r
+\item \href{#method-ArvadosFile-flush}{\code{ArvadosFile$flush()}}\r
+\item \href{#method-ArvadosFile-write}{\code{ArvadosFile$write()}}\r
+\item \href{#method-ArvadosFile-move}{\code{ArvadosFile$move()}}\r
+\item \href{#method-ArvadosFile-copy}{\code{ArvadosFile$copy()}}\r
+\item \href{#method-ArvadosFile-duplicate}{\code{ArvadosFile$duplicate()}}\r
 }\r
 }\r
 \if{html}{\out{<hr>}}\r
-\if{html}{\out{<a id="method-new"></a>}}\r
-\if{latex}{\out{\hypertarget{method-new}{}}}\r
+\if{html}{\out{<a id="method-ArvadosFile-new"></a>}}\r
+\if{latex}{\out{\hypertarget{method-ArvadosFile-new}{}}}\r
 \subsection{Method \code{new()}}{\r
 Initialize new enviroment.\r
 \subsection{Usage}{\r
@@ -121,7 +141,9 @@ A new `ArvadosFile` object.
 }\r
 \subsection{Examples}{\r
 \if{html}{\out{<div class="r example copy">}}\r
-\preformatted{myFile   <- ArvadosFile$new("myFile")\r
+\preformatted{\dontrun{\r
+myFile   <- ArvadosFile$new("myFile")\r
+}\r
 }\r
 \if{html}{\out{</div>}}\r
 \r
@@ -129,8 +151,8 @@ A new `ArvadosFile` object.
 \r
 }\r
 \if{html}{\out{<hr>}}\r
-\if{html}{\out{<a id="method-getName"></a>}}\r
-\if{latex}{\out{\hypertarget{method-getName}{}}}\r
+\if{html}{\out{<a id="method-ArvadosFile-getName"></a>}}\r
+\if{latex}{\out{\hypertarget{method-ArvadosFile-getName}{}}}\r
 \subsection{Method \code{getName()}}{\r
 Returns name of the file.\r
 \subsection{Usage}{\r
@@ -139,7 +161,9 @@ Returns name of the file.
 \r
 \subsection{Examples}{\r
 \if{html}{\out{<div class="r example copy">}}\r
-\preformatted{arvadosFile$getName()\r
+\preformatted{\dontrun{\r
+arvadosFile$getName()\r
+}\r
 }\r
 \if{html}{\out{</div>}}\r
 \r
@@ -147,8 +171,8 @@ Returns name of the file.
 \r
 }\r
 \if{html}{\out{<hr>}}\r
-\if{html}{\out{<a id="method-getFileListing"></a>}}\r
-\if{latex}{\out{\hypertarget{method-getFileListing}{}}}\r
+\if{html}{\out{<a id="method-ArvadosFile-getFileListing"></a>}}\r
+\if{latex}{\out{\hypertarget{method-ArvadosFile-getFileListing}{}}}\r
 \subsection{Method \code{getFileListing()}}{\r
 Returns collections file content as character vector.\r
 \subsection{Usage}{\r
@@ -164,7 +188,9 @@ Returns collections file content as character vector.
 }\r
 \subsection{Examples}{\r
 \if{html}{\out{<div class="r example copy">}}\r
-\preformatted{arvadosFile$getFileListing()\r
+\preformatted{\dontrun{\r
+arvadosFile$getFileListing()\r
+}\r
 }\r
 \if{html}{\out{</div>}}\r
 \r
@@ -172,8 +198,8 @@ Returns collections file content as character vector.
 \r
 }\r
 \if{html}{\out{<hr>}}\r
-\if{html}{\out{<a id="method-getSizeInBytes"></a>}}\r
-\if{latex}{\out{\hypertarget{method-getSizeInBytes}{}}}\r
+\if{html}{\out{<a id="method-ArvadosFile-getSizeInBytes"></a>}}\r
+\if{latex}{\out{\hypertarget{method-ArvadosFile-getSizeInBytes}{}}}\r
 \subsection{Method \code{getSizeInBytes()}}{\r
 Returns collections content size in bytes.\r
 \subsection{Usage}{\r
@@ -182,7 +208,9 @@ Returns collections content size in bytes.
 \r
 \subsection{Examples}{\r
 \if{html}{\out{<div class="r example copy">}}\r
-\preformatted{arvadosFile$getSizeInBytes()\r
+\preformatted{\dontrun{\r
+arvadosFile$getSizeInBytes()\r
+}\r
 }\r
 \if{html}{\out{</div>}}\r
 \r
@@ -190,8 +218,8 @@ Returns collections content size in bytes.
 \r
 }\r
 \if{html}{\out{<hr>}}\r
-\if{html}{\out{<a id="method-get"></a>}}\r
-\if{latex}{\out{\hypertarget{method-get}{}}}\r
+\if{html}{\out{<a id="method-ArvadosFile-get"></a>}}\r
+\if{latex}{\out{\hypertarget{method-ArvadosFile-get}{}}}\r
 \subsection{Method \code{get()}}{\r
 \subsection{Usage}{\r
 \if{html}{\out{<div class="r">}}\preformatted{ArvadosFile$get(fileLikeObjectName)}\if{html}{\out{</div>}}\r
@@ -199,8 +227,8 @@ Returns collections content size in bytes.
 \r
 }\r
 \if{html}{\out{<hr>}}\r
-\if{html}{\out{<a id="method-getFirst"></a>}}\r
-\if{latex}{\out{\hypertarget{method-getFirst}{}}}\r
+\if{html}{\out{<a id="method-ArvadosFile-getFirst"></a>}}\r
+\if{latex}{\out{\hypertarget{method-ArvadosFile-getFirst}{}}}\r
 \subsection{Method \code{getFirst()}}{\r
 \subsection{Usage}{\r
 \if{html}{\out{<div class="r">}}\preformatted{ArvadosFile$getFirst()}\if{html}{\out{</div>}}\r
@@ -208,8 +236,8 @@ Returns collections content size in bytes.
 \r
 }\r
 \if{html}{\out{<hr>}}\r
-\if{html}{\out{<a id="method-getCollection"></a>}}\r
-\if{latex}{\out{\hypertarget{method-getCollection}{}}}\r
+\if{html}{\out{<a id="method-ArvadosFile-getCollection"></a>}}\r
+\if{latex}{\out{\hypertarget{method-ArvadosFile-getCollection}{}}}\r
 \subsection{Method \code{getCollection()}}{\r
 Returns collection UUID.\r
 \subsection{Usage}{\r
@@ -218,8 +246,8 @@ Returns collection UUID.
 \r
 }\r
 \if{html}{\out{<hr>}}\r
-\if{html}{\out{<a id="method-setCollection"></a>}}\r
-\if{latex}{\out{\hypertarget{method-setCollection}{}}}\r
+\if{html}{\out{<a id="method-ArvadosFile-setCollection"></a>}}\r
+\if{latex}{\out{\hypertarget{method-ArvadosFile-setCollection}{}}}\r
 \subsection{Method \code{setCollection()}}{\r
 Sets new collection.\r
 \subsection{Usage}{\r
@@ -228,8 +256,8 @@ Sets new collection.
 \r
 }\r
 \if{html}{\out{<hr>}}\r
-\if{html}{\out{<a id="method-getRelativePath"></a>}}\r
-\if{latex}{\out{\hypertarget{method-getRelativePath}{}}}\r
+\if{html}{\out{<a id="method-ArvadosFile-getRelativePath"></a>}}\r
+\if{latex}{\out{\hypertarget{method-ArvadosFile-getRelativePath}{}}}\r
 \subsection{Method \code{getRelativePath()}}{\r
 Returns file path relative to the root.\r
 \subsection{Usage}{\r
@@ -238,8 +266,8 @@ Returns file path relative to the root.
 \r
 }\r
 \if{html}{\out{<hr>}}\r
-\if{html}{\out{<a id="method-getParent"></a>}}\r
-\if{latex}{\out{\hypertarget{method-getParent}{}}}\r
+\if{html}{\out{<a id="method-ArvadosFile-getParent"></a>}}\r
+\if{latex}{\out{\hypertarget{method-ArvadosFile-getParent}{}}}\r
 \subsection{Method \code{getParent()}}{\r
 Returns project UUID.\r
 \subsection{Usage}{\r
@@ -248,8 +276,8 @@ Returns project UUID.
 \r
 }\r
 \if{html}{\out{<hr>}}\r
-\if{html}{\out{<a id="method-setParent"></a>}}\r
-\if{latex}{\out{\hypertarget{method-setParent}{}}}\r
+\if{html}{\out{<a id="method-ArvadosFile-setParent"></a>}}\r
+\if{latex}{\out{\hypertarget{method-ArvadosFile-setParent}{}}}\r
 \subsection{Method \code{setParent()}}{\r
 Sets project collection.\r
 \subsection{Usage}{\r
@@ -258,8 +286,8 @@ Sets project collection.
 \r
 }\r
 \if{html}{\out{<hr>}}\r
-\if{html}{\out{<a id="method-read"></a>}}\r
-\if{latex}{\out{\hypertarget{method-read}{}}}\r
+\if{html}{\out{<a id="method-ArvadosFile-read"></a>}}\r
+\if{latex}{\out{\hypertarget{method-ArvadosFile-read}{}}}\r
 \subsection{Method \code{read()}}{\r
 Read file content.\r
 \subsection{Usage}{\r
@@ -279,18 +307,20 @@ Read file content.
 }\r
 \subsection{Examples}{\r
 \if{html}{\out{<div class="r example copy">}}\r
-\preformatted{collection <- Collection$new(arv, collectionUUID)\r
+\preformatted{\dontrun{\r
+collection <- Collection$new(arv, collectionUUID)\r
 arvadosFile <- collection$get(fileName)\r
 fileContent <- arvadosFile$read("text")\r
 }\r
+}\r
 \if{html}{\out{</div>}}\r
 \r
 }\r
 \r
 }\r
 \if{html}{\out{<hr>}}\r
-\if{html}{\out{<a id="method-connection"></a>}}\r
-\if{latex}{\out{\hypertarget{method-connection}{}}}\r
+\if{html}{\out{<a id="method-ArvadosFile-connection"></a>}}\r
+\if{latex}{\out{\hypertarget{method-ArvadosFile-connection}{}}}\r
 \subsection{Method \code{connection()}}{\r
 Get connection opened in "read" or "write" mode.\r
 \subsection{Usage}{\r
@@ -306,18 +336,20 @@ Get connection opened in "read" or "write" mode.
 }\r
 \subsection{Examples}{\r
 \if{html}{\out{<div class="r example copy">}}\r
-\preformatted{collection <- Collection$new(arv, collectionUUID)\r
+\preformatted{\dontrun{\r
+collection <- Collection$new(arv, collectionUUID)\r
 arvadosFile <- collection$get(fileName)\r
 arvConnection <- arvadosFile$connection("w")\r
 }\r
+}\r
 \if{html}{\out{</div>}}\r
 \r
 }\r
 \r
 }\r
 \if{html}{\out{<hr>}}\r
-\if{html}{\out{<a id="method-flush"></a>}}\r
-\if{latex}{\out{\hypertarget{method-flush}{}}}\r
+\if{html}{\out{<a id="method-ArvadosFile-flush"></a>}}\r
+\if{latex}{\out{\hypertarget{method-ArvadosFile-flush}{}}}\r
 \subsection{Method \code{flush()}}{\r
 Write connections content to a file or override current content of the file.\r
 \subsection{Usage}{\r
@@ -326,19 +358,21 @@ Write connections content to a file or override current content of the file.
 \r
 \subsection{Examples}{\r
 \if{html}{\out{<div class="r example copy">}}\r
-\preformatted{collection <- Collection$new(arv, collectionUUID)\r
+\preformatted{\dontrun{\r
+collection <- Collection$new(arv, collectionUUID)\r
 arvadosFile <- collection$get(fileName)\r
 myFile$write("This is new file content")\r
 arvadosFile$flush()\r
 }\r
+}\r
 \if{html}{\out{</div>}}\r
 \r
 }\r
 \r
 }\r
 \if{html}{\out{<hr>}}\r
-\if{html}{\out{<a id="method-write"></a>}}\r
-\if{latex}{\out{\hypertarget{method-write}{}}}\r
+\if{html}{\out{<a id="method-ArvadosFile-write"></a>}}\r
+\if{latex}{\out{\hypertarget{method-ArvadosFile-write}{}}}\r
 \subsection{Method \code{write()}}{\r
 Write to file or override current content of the file.\r
 \subsection{Usage}{\r
@@ -356,18 +390,20 @@ Write to file or override current content of the file.
 }\r
 \subsection{Examples}{\r
 \if{html}{\out{<div class="r example copy">}}\r
-\preformatted{collection <- Collection$new(arv, collectionUUID)\r
+\preformatted{\dontrun{\r
+collection <- Collection$new(arv, collectionUUID)\r
 arvadosFile <- collection$get(fileName)\r
 myFile$write("This is new file content")\r
 }\r
+}\r
 \if{html}{\out{</div>}}\r
 \r
 }\r
 \r
 }\r
 \if{html}{\out{<hr>}}\r
-\if{html}{\out{<a id="method-move"></a>}}\r
-\if{latex}{\out{\hypertarget{method-move}{}}}\r
+\if{html}{\out{<a id="method-ArvadosFile-move"></a>}}\r
+\if{latex}{\out{\hypertarget{method-ArvadosFile-move}{}}}\r
 \subsection{Method \code{move()}}{\r
 Moves file to a new location inside collection.\r
 \subsection{Usage}{\r
@@ -383,7 +419,9 @@ Moves file to a new location inside collection.
 }\r
 \subsection{Examples}{\r
 \if{html}{\out{<div class="r example copy">}}\r
-\preformatted{arvadosFile$move(newPath)\r
+\preformatted{\dontrun{\r
+arvadosFile$move(newPath)\r
+}\r
 }\r
 \if{html}{\out{</div>}}\r
 \r
@@ -391,8 +429,8 @@ Moves file to a new location inside collection.
 \r
 }\r
 \if{html}{\out{<hr>}}\r
-\if{html}{\out{<a id="method-copy"></a>}}\r
-\if{latex}{\out{\hypertarget{method-copy}{}}}\r
+\if{html}{\out{<a id="method-ArvadosFile-copy"></a>}}\r
+\if{latex}{\out{\hypertarget{method-ArvadosFile-copy}{}}}\r
 \subsection{Method \code{copy()}}{\r
 Copies file to a new location inside collection.\r
 \subsection{Usage}{\r
@@ -408,7 +446,9 @@ Copies file to a new location inside collection.
 }\r
 \subsection{Examples}{\r
 \if{html}{\out{<div class="r example copy">}}\r
-\preformatted{arvadosFile$copy("NewName.format")\r
+\preformatted{\dontrun{\r
+arvadosFile$copy("NewName.format")\r
+}\r
 }\r
 \if{html}{\out{</div>}}\r
 \r
@@ -416,8 +456,8 @@ Copies file to a new location inside collection.
 \r
 }\r
 \if{html}{\out{<hr>}}\r
-\if{html}{\out{<a id="method-duplicate"></a>}}\r
-\if{latex}{\out{\hypertarget{method-duplicate}{}}}\r
+\if{html}{\out{<a id="method-ArvadosFile-duplicate"></a>}}\r
+\if{latex}{\out{\hypertarget{method-ArvadosFile-duplicate}{}}}\r
 \subsection{Method \code{duplicate()}}{\r
 Duplicate file and gives it a new name.\r
 \subsection{Usage}{\r