powered by
Create directories for cache
create.directory.for.cache(base.dir, parent.path)
tentative base dir to create.
first 4 characters of digest that will become parent directory for the actual cache file (this reduces number of files per folder)
a list of updated base.dir and parent.dir
# NOT RUN { loose.rock:::create.directory.for.cache(tempdir(), 'abcd') # } # NOT RUN { loose.rock:::create.directory.for.cache( file.path(getwd(), 'run-cache'), 'abcd' ) # }
Run the code above in your browser using DataLab