Thank you for the helpful comments! NULLLL is deliberately misspelt for tracing (see the function count_space(). Although I agree that dir2 and dir4 could be better named, such names are quite popular in R community. For examples, read.csv2()is a built-in function.
Many thanks!