ReadTrack: Tracks files that read by functions not in adapr and captures...

Description Usage Arguments Details Value Examples

Description

Tracks files that read by functions not in adapr and captures the file information within dependency object

Usage

1
ReadTrack(file.name = "data.csv", description = "Data file")

Arguments

file.name

name of file (vectorized)

description

description of data file (vectorized)

Details

Allows tracking of files read by other functions than Read. Assumes file is in project "Data" directory

Value

Filepath of file to read

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
 source_info <- create_source_file_dir("adaprHome","tree_controller.R")
write.csv(cars,file.path(source_info$data.dir,"test.csv"))
# Read with any function
temp <- utils::read.csv(file.path(source_info$data.dir,"test.csv"))
ReadTrack("test.csv","cars dataframe")
# Will track the file as though read with Read().
file.remove(file.path(source_info$data.dir,"test.csv"))

## End(Not run) 

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