Description Usage Arguments Value See Also Examples
Download a file or a folder from the Rocker R session working directory.
1 2 3 4 5 6 7 | rockr.file_download(
conn,
source,
destination = NULL,
overwrite = FALSE,
temp = FALSE
)
|
conn |
A rockr connection object. |
source |
Path to the file in the R server file system. |
destination |
Path to the file to be written. If omitted, file with same name in the working directory will be written. Any non-existing parent directories will be created. |
overwrite |
Overwrite the destination file if TRUE. Default is FALSE. |
temp |
Logical to specify whether the root folder is the R session's home or the temporary folder. Default is FALSE. |
Void
Other file functions:
rockr.file_upload()
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
conn <- rockr.connect(username='user', password='password',
url='https://rocker-demo.obiba.org')
rockr.open(conn)
# download a file
rockr.file_download(conn, 'data.csv')
# download, create destination folder and rename file
rockr.file_download(conn, 'DatabaseTest.sav', 'spss/test.sav')
rockr.close(conn)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.