Various programming utilities for R
open sourceLGPL-2.1-or-laterfree
R.utils is Henrik Bengtsson's collection of utility functions for programming and developing R packages. Among them: compressing and decompressing files (gzip, gunzip, bzip2), downloading files, copying directories, creating files atomically and links and Windows shortcuts, counting lines in a file, capturing an expression's output, parsing command-line arguments (cmdArgs), calling functions while ignoring unused arguments (doCall), running code with a timeout (TimeoutException), text progress bars and status bars, verbose logging, argument validation and settings. CRAN lists many packages that depend on it.
Problems it solves
- decompress a .gz file from R
- parse command-line arguments in an Rscript
- show a progress bar in the R console for a long loop
Features
- gzip, bzip2 and generic file compression and decompression
- file downloads, atomic file creation, links and directory copies
- command-line argument parsing for R scripts
- text progress and status bars, and verbose logging
- argument validation and timeout handling
