Read.cap: Lower level function that reads data and capture the file...

Description Usage Arguments Value Examples

Description

Lower level function that reads data and capture the file information within dependency object

Usage

1
Read.cap(file.info, read.fcn, source_info, ...)

Arguments

file.info

file information list

read.fcn

function for reading the file

source_info

source information list

...

arguments passed to read.fcn

Value

object read from files

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
source_info <- create_source_file_dir("adaprHome","tree_controller.R")
testfile <- file.path(source_info$data.dir,"test.csv")
write.csv(cars,testfile)
fileinfo <- createFileInfo(dirname(testfile),basename(testfile),"cars dataset")
Read.cap(fileinfo,read.csv,source_info)
file.remove(file.path(source_info$data.dir,"test.csv"))


## End(Not run) 

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