The R Project SVN R

Rev

Rev 61433 | Rev 66684 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61433 Rev 62950
Line 1... Line 1...
1
% File src/library/base/man/warnings.Rd
1
% File src/library/base/man/warnings.Rd
2
% Part of the R package, http://www.R-project.org
2
% Part of the R package, http://www.R-project.org
3
% Copyright 1995-2007 R Core Team
3
% Copyright 1995-2013 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{warnings}
6
\name{warnings}
-
 
7
\title{Print Warning Messages}
7
\alias{warnings}
8
\alias{warnings}
8
\alias{last.warning}
9
\alias{last.warning}
9
\alias{print.warnings}
10
\alias{print.warnings}
10
\title{Print Warning Messages}
11
\alias{[.warnings}
11
\description{
12
\description{
12
  \code{warnings} and its \code{print} method print the
13
  \code{warnings} and its \code{print} method print the
13
  variable \code{last.warning} in a pleasing form.
14
  variable \code{last.warning} in a pleasing form.
14
}
15
}
15
\usage{
16
\usage{
Line 49... Line 50...
49
   options(warn = w); cat("\n warn =", w, "\n")
50
   options(warn = w); cat("\n warn =", w, "\n")
50
   for(i in 1:3) { cat(i,"..\n"); m <- matrix(1:7, 3,4) }
51
   for(i in 1:3) { cat(i,"..\n"); m <- matrix(1:7, 3,4) }
51
}
52
}
52
warnings()
53
warnings()
53
options(ow) # reset
54
options(ow) # reset
-
 
55
tail(warnings(), 2) # see the last two warnings only (via '[' method)
54
}
56
}
55
\keyword{programming}
57
\keyword{programming}
56
\keyword{error}
58
\keyword{error}