-
- `subcollection <- collection$get("mySubcollection/")`
- `subcollection$remove("fileInsideSubcollection.exe")`
- `subcollection$remove("folderInsideSubcollection/")`
-
-* Move file or folder inside collection:
-
- Directley from collection
-
- `collection$move("folder/file.cpp", "file.cpp")`
-
- Or from file
-
- `file <- collection$get("location/to/my/file.cpp")`
- `file$move("newDestination/file.cpp")`
-
- Or from subcollection
-
- `subcollection <- collection$get("location/to/folder")`
- `subcollection$move("newDestination/folder")`
-
- Make sure to include new file name in destination.
- In second example file$move("newDestination/") will not work.
-
-#### WORKING WITH ARVADOS PROJECTS
+
+```{r}
+subcollection <- collection$get("mySubcollection/")
+subcollection$remove("fileInsideSubcollection.exe")
+subcollection$remove("folderInsideSubcollection/")
+```
+
+* Move or rename a file or folder within a collection (moving between collections is currently not supported):
+
+Directly from collection
+
+```{r}
+collection$move("folder/file.cpp", "file.cpp")
+```
+
+Or from file
+
+```{r}
+file <- collection$get("location/to/my/file.cpp")
+file$move("newDestination/file.cpp")
+```
+
+Or from subcollection
+
+```{r}
+subcollection <- collection$get("location/to/folder")
+subcollection$move("newDestination/folder")
+```
+
+Make sure to include new file name in destination.
+In second example file$move("newDestination/") will not work.
+
+* Copy file or folder within a collection (copying between collections is currently not supported):
+
+Directly from collection
+
+```{r}
+collection$copy("folder/file.cpp", "file.cpp")
+```
+
+Or from file
+
+```{r}
+file <- collection$get("location/to/my/file.cpp")
+file$copy("destination/file.cpp")
+```
+
+Or from subcollection
+
+```{r}
+subcollection <- collection$get("location/to/folder")
+subcollection$copy("destination/folder")
+```
+
+#### Working with Aravdos projects