opal.file_download: Download a file

Description Usage Arguments Examples

Description

Download a file or a folder from the Opal file system

Usage

1
opal.file_download(opal, source, destination = NULL, key = NULL)

Arguments

opal

Opal object.

source

Path to the file in the Opal file system.

destination

Path to the file to be written. If ommitted, file with same name in the working directory will be written.

key

File encryption key: downloaded file will be a zip file with content encrypted (use 7zip to decrypt).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
# download a file
opal.file_download(o, '/home/administrator/joins/join-src-3.csv')
opal.file_download(o, '/home/administrator/datashield/hop.R')
opal.file_download(o, '/home/administrator/datashield/CNSIM1.zip')

# download a file encrypted by a key: resulting file is a zip with an encrypted content
opal.file_download(o, '/home/administrator/export/some-data.csv', 
                      destination='some-data.zip', key='AZF57893FBDE')

# download, create destination folder and rename file
opal.file_download(o, '/home/administrator/spss/DatabaseTest.sav', 'spss/test.sav')

# download a folder
opal.file_download(o, '/home/administrator/joins', 'joins.zip')

## End(Not run)

datashield/opal documentation built on May 14, 2019, 7:53 p.m.