filenamex: A file name listing utility

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/filenamex.R

Description

Generates a text file with the name of all files in a given directory and saves it as a tab delimited txt file. Helpful for filling in template files (see Loader) without making mistakes

Usage

1
filenamex(input=file.path(system.file(package="agilp"),"input",""),output=file.path(system.file(package="agilp"),"output",""))

Arguments

input

full path of directory where input data files are put; default is a folder named input within the agilp package directory

output

full path of directory where output data files are put; default is a folder named output within the agilp package directory

Details

None

Value

names.txt

A tab delimited text file with the names of all the files in the input directory

Author(s)

Benny Chain; b.chain@ucl.ac.ucl

References

In preparation

See Also

AAProcess Loader IDswop Baseline Equaliser AALoess

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#This example makes a list of files in the folder agilp/extdata/raw and saves it in a file called names.txt (tab delimited) in the folder agilp/output.
inputdir<-file.path(system.file(package="agilp"),"extdata","raw/","", fsep = .Platform$file.sep)
outputdir<-file.path(system.file(package="agilp"),"output/", "", fsep = .Platform$file.sep)
filenamex(input=inputdir,output=outputdir)

## Not run: 
#to remove these files again and empty the output directory use 
unlink(paste(file.path(system.file(package="agilp"),"output",""),"*.*",sep=""), recursive=FALSE)

   
## End(Not run)

agilp documentation built on Nov. 8, 2020, 5:45 p.m.