Create the directory if it doesn't exist. And make sure it being cleaned
modb.clean.file(idx_dir)Invisibly TRUE.
modb.clean.file("IndexedData")
#> [clean.file] Directory 'IndexedData' does not exist - creating it.
modb.clean.file("Output")
#> [clean.file] Directory 'Output' does not exist - creating it.