Skip to content

Commit

Permalink
use dontshow instead of testonly
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinsimpson committed Oct 9, 2018
1 parent 882e67a commit 8ba2c36
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions man/residuals.prcurve.Rd
Expand Up @@ -82,6 +82,7 @@
}
\examples{
\dontshow{od <- options(digits = 4)}
## Load Abernethy Forest data set
data(abernethy)
Expand All @@ -93,13 +94,16 @@
aber.pc <- prcurve(abernethy2, method = "ca", keep.data = TRUE)
## default "distance" residuals
resid(aber.pc)
res <- resid(aber.pc)
head(res)
## residuals from the underlying smooth models, also illustrates
## how to select specific types of residual from the individual
## method using argument 'type'
resid(aber.pc, which = "smooths", type = "deviance")
res <- resid(aber.pc, which = "smooths", type = "deviance")
dim(res)
head(res[, 1:5]) # just show a few species residuals
\dontshow{options(od)}
}
\keyword{ methods }
4 changes: 2 additions & 2 deletions man/wa.Rd
Expand Up @@ -162,7 +162,7 @@ waFit(x, y, tol.dw, useN2, deshrink, na.tol, small.tol,
\author{Gavin L. Simpson and Jari Oksanen}
\seealso{\code{\link{mat}} for an alternative transfer function method.}
\examples{
\testonly{od <- options(digits = 4)}
\dontshow{od <- options(digits = 4)}
data(ImbrieKipp)
data(SumSST)
Expand Down Expand Up @@ -216,7 +216,7 @@ fitted(mod4)
## residuals for the training set
residuals(mod4)
\testonly{options(od)}
\dontshow{options(od)}
}
\keyword{methods}
\keyword{models}
Expand Down

0 comments on commit 8ba2c36

Please sign in to comment.