projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '16809-s3-v4-signature'
[arvados.git]
/
sdk
/
R
/
README.Rmd
diff --git
a/sdk/R/README.Rmd
b/sdk/R/README.Rmd
index 7ea226fd0931d61a2c8c2e92f8d892f3406918b3..63bf55373d17a163522d1f2fdcf0ee4d640361d5 100644
(file)
--- a/
sdk/R/README.Rmd
+++ b/
sdk/R/README.Rmd
@@
-14,7
+14,7
@@
knitr::opts_chunk$set(eval=FALSE)
```
```{r}
```
```{r}
-install.packages("ArvadosR", repos=c("http://r.arvados.org", getOption("repos")["CRAN"]), dependencies=TRUE)
+install.packages("ArvadosR", repos=c("http
s
://r.arvados.org", getOption("repos")["CRAN"]), dependencies=TRUE)
```
Note: on Linux, you may have to install supporting packages.
```
Note: on Linux, you may have to install supporting packages.
@@
-133,7
+133,7
@@
files <- collection$getFileListing()
arvadosFile <- collection$get("location/to/my/file.cpp")
```
arvadosFile <- collection$get("location/to/my/file.cpp")
```
-
or
+or
```{r}
arvadosSubcollection <- collection$get("location/to/my/directory/")
```{r}
arvadosSubcollection <- collection$get("location/to/my/directory/")
@@
-177,7
+177,7
@@
fileContent <- arvadosFile$read("raw", offset = 1024, length = 512)
size <- arvadosFile$getSizeInBytes()
```
size <- arvadosFile$getSizeInBytes()
```
-
or
+or
```{r}
size <- arvadosSubcollection$getSizeInBytes()
```{r}
size <- arvadosSubcollection$getSizeInBytes()
@@
-189,7
+189,7
@@
size <- arvadosSubcollection$getSizeInBytes()
collection$create(files)
```
collection$create(files)
```
-
Example:
+Example:
```{r}
mainFile <- collection$create("cpp/src/main.cpp")
```{r}
mainFile <- collection$create("cpp/src/main.cpp")
@@
-219,9
+219,9
@@
subcollection$remove("fileInsideSubcollection.exe")
subcollection$remove("folderInsideSubcollection/")
```
subcollection$remove("folderInsideSubcollection/")
```
-* Move
file or folder inside collection
:
+* Move
or rename a file or folder within a collection (moving between collections is currently not supported)
:
-Directl
e
y from collection
+Directly from collection
```{r}
collection$move("folder/file.cpp", "file.cpp")
```{r}
collection$move("folder/file.cpp", "file.cpp")
@@
-244,9
+244,9
@@
subcollection$move("newDestination/folder")
Make sure to include new file name in destination.
In second example file$move("newDestination/") will not work.
Make sure to include new file name in destination.
In second example file$move("newDestination/") will not work.
-* Copy file or folder
inside collection
:
+* Copy file or folder
within a collection (copying between collections is currently not supported)
:
-Directl
e
y from collection
+Directly from collection
```{r}
collection$copy("folder/file.cpp", "file.cpp")
```{r}
collection$copy("folder/file.cpp", "file.cpp")