opal.file_write {opal}R Documentation

Write a file

Description

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

Usage

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.

Examples

## Not run: 
# 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")

## End(Not run)

[Package opal version 2.6.0 ]