Write.cap: Lower level function that writes data and captures the file...

Description Usage Arguments Details Value Examples

Description

Lower level function that writes data and captures the file information within dependency object

Usage

1
Write.cap(obj = NULL, file.info, write.fcn, source_info, ...)

Arguments

obj

object to write, if null then open graphics device

file.info

file information list

write.fcn

function to write file

source_info

source information list

...

arguments passed to write.fcn

Details

Not usually direct use. See Write() and Graph().

Value

file.info file information returned

Examples

1
2
3
4
5
6
7
## Not run: 
source_info <- create_source_file_dir("adaprHome","tree_controller.R")
testfile <- file.path(source_info$results.dir,"test.csv")
fileinfo <- createFileInfo(dirname(testfile),basename(testfile),"cars dataset")
Write.cap(cars,fileinfo,write.csv,source_info,row.names=FALSE)

## End(Not run) 

adapr documentation built on May 1, 2019, 7:05 p.m.