ifiles: Creates iterator over text files from the disk
The result of this function usually used in an itoken
ifiles(file_paths, reader_function = readLines, ...)
idir(path, reader_function = readLines, ...)
character paths of input files
function which will perform reading of text
files from disk, which should take a path as its first argument.
arguments passed to other methods (including
character path of directory. All files in the directory will be read.
current_dir_files <- list.files(path = ".", full.names = TRUE)
files_iterator <- ifiles(current_dir_files)
dir_files_iterator <- idir(path = ".")