Learn R Programming

opalr (version 1.2.0)

opal.file_read: Read a file

Description

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

Usage

opal.file_read(opal, source, destination)

Arguments

opal

Opal object.

source

Path to the file in the R session workspace (must exists).

destination

Path to the destination file or folder. Any required sub-folders will be created.

See Also

Other file functions: opal.file_cp, opal.file_download, opal.file_ls, opal.file_mkdir, opal.file_mv, opal.file_rm, opal.file_upload, opal.file_write, opal.file

Examples

Run this code
# NOT RUN {
o <- opal.login('administrator','password','https://opal-demo.obiba.org')
# read into folder
opal.file_read(o,"DatabaseTest.sav", "/tmp")
# read and rename
opal.file_read(o,"test/DatabaseTest.sav", "/tmp/Test.sav")
# user home expansion
opal.file_read(o,"DatabaseTest.sav", "~/coucou/pwel.sav")
opal.logout(o)
# }

Run the code above in your browser using DataLab