Character vector of packages called with library or require.
Arguments
dir.r
path to directory with R scripts.
encoding
Encoding passed to readLines() when reading source files.
Defaults to getOption("encoding") so the system locale is respected,
matching att_from_rscript().