list.libs: list.libs

Description Usage Arguments Value Examples

Description

Collects all parameters library and require commands in a set of (R) files. In case that the parsing of a file fails a warning with the error message(s) will be displayed.

Usage

1
2
3
list.libs(path = ".", pattern = "*.R$", all.files = FALSE,
  full.names = TRUE, recursive = TRUE, ignore.case = FALSE,
  include.dirs = FALSE, no.. = FALSE, quiet = FALSE)

Arguments

path

a character vector of full path names; the default corresponds to the working directory, getwd(). Tilde expansion (see path.expand) is performed. Missing values will be ignored.

pattern

an optional regular expression. Only file names which match the regular expression will be returned.

all.files

a logical value. If FALSE, only the names of visible files are returned. If TRUE, all file names will be returned.

full.names

a logical value. If TRUE, the directory path is prepended to the file names to give a relative file path. If FALSE, the file names (rather than paths) are returned.

recursive

logical. Should the listing recurse into directories?

ignore.case

logical. Should pattern-matching be case-insensitive?

include.dirs

logical. Should subdirectory names be included in recursive listings? (They always are in non-recursive ones).

no..

logical. Should both "." and ".." be excluded also from non-recursive listings?

quiet

logical: display the files analysed

Value

a table with library and require calls including frequencies

Examples

1
2
3
4
5
6
7
8
list.libs(path=find.package("shinyExample"))
## Not run: 
  # install missing libraries
  eval(parse(text=attr(ll, "install"))) 
  # load all libraries
  eval(parse(text=attr(ll, "library")))

## End(Not run)

sigbertklinke/shinyExample documentation built on May 26, 2019, 4:32 a.m.