createFile {maDB}R Documentation

Create a file and all needed directories

Description

createFile This function creates a new file just like the file.create function from R, but if needed it creates also directories.

Usage

createFile(file)

Arguments

file The file name.

Details

This function creates a file also in a subdirectory, and creates this directory also if needed. If for example as file the string “doc/tables/testtable.txt” is submited, the function creates the directory “doc”, then the directory “tables” into the “doc” directory and finally the file “testtable.txt” in this last sub directory. As file delimiter the “/” has always to be used, also in Windows!

Author(s)

Johannes Rainer

References

See Also

createDirs

Examples






[Package maDB version 1.2.0 Index]