Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

grepLogs

Grep log files for a pattern.


Description

Searches for occurence of pattern in log files.

Usage

grepLogs(reg, ids, pattern = "warn", ignore.case = TRUE,
  verbose = FALSE, range = 2L)

Arguments

reg

[Registry]
Registry.

ids

[integer]
Ids of jobs to grep. Default is all terminated jobs (done + errors).

pattern

[character(1)]
Pattern to search for. See grep. Default is "warn".

ignore.case

[logical(1)]
Ignore case. See grep. Default is TRUE.

verbose

[logical(1)]
Print matches. Default is FALSE.

range

[integer(1)]
If verbose is set to TRUE, print range leading and trailing lines for contextual information about the warning. Default is 2.

Value

[integer]. Ids of jobs where pattern was found in the log file.

See Also


BatchJobs

Batch Computing with R

v1.8
BSD_2_clause + file LICENSE
Authors
Bernd Bischl <bernd_bischl@gmx.net>, Michel Lang <michellang@gmail.com>, Henrik Bengtsson <henrikb@braju.com>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.