opal.file_write: Write a file

Description Usage Arguments See Also Examples

View source: R/opal.file.R

Description

Write a file from the Opal file system into the R session workspace.

Usage

1
opal.file_write(opal, source, destination = NULL)

Arguments

opal

Opal object.

source

Path to the file in the Opal file system (must exists and be accessible for the user).

destination

Path to the destination file, relative to the R session workspace. Any required sub-folders will be created. If ommitted, file with same name will be written.

See Also

Other file functions: opal.file_cp(), opal.file_download(), opal.file_ls(), opal.file_mkdir_tmp(), opal.file_mkdir(), opal.file_mv(), opal.file_read(), opal.file_rm(), opal.file_unzip(), opal.file_upload(), opal.file()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
# user home expansion
opal.file_write(o, "~/spss/DatabaseTest.sav")
# rename file
opal.file_write(o, "/home/administrator/spss/DatabaseTest.sav", "x.sav")
# create sub-folder
opal.file_write(o, "/home/administrator/spss/DatabaseTest.sav", "test/x.sav")
opal.logout(o)

## End(Not run)

opalr documentation built on Oct. 26, 2021, 5:06 p.m.