Report the number of warnings and errors so far in the current session.

DESCRIPTION:

Report the number of warnings and errors so far in the current session.

USAGE:

problem.summary(errors=T, warnings=T)

OPTIONAL ARGUMENTS:

errors
TRUE if you want a count of the errors.
warnings
TRUE if you want a count of the warnings.

VALUE:

An integer vector containing the counts of the errors and/or warnings that S-PLUS has generated in the current session. It will have the names errors and/or warnings to describe the counts.

DETAILS:

If you set options(verbose=T), you will see the same information at the end of each session, although it will disappear immediately if you are using a GUI version of S-PLUS. It is most useful when in batch mode.

EXAMPLES:

for(i in (-10:10)) log(i)
# There were 10 warnings (use warnings() to see them)
nosuchfunction(no - such - data)
# Problem: Couldn't find a function definition for "nosuchfunction"
problem.summary()
#  errors warnings 
#       1       11