From 69beeb4300453d93a10a5a35142775119df7da66 Mon Sep 17 00:00:00 2001 From: Arni Magnusson Date: Fri, 17 Feb 2017 16:25:01 +0100 Subject: [PATCH] Add missing @examples tag --- R/writeDLS.R | 1 + man/writeDLS.Rd | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/R/writeDLS.R b/R/writeDLS.R index efc14ac..56e4a83 100644 --- a/R/writeDLS.R +++ b/R/writeDLS.R @@ -16,6 +16,7 @@ #' #' \code{\link{icesTAF-package}} gives an overview of the package. #' +#' @examples #' \dontrun{ #' survey <- data.frame(year=2001:2010, randu[1:10,]) #' dls <- icesAdvice::DLS3.2(1000, survey$y) diff --git a/man/writeDLS.Rd b/man/writeDLS.Rd index 920afd2..8203a36 100644 --- a/man/writeDLS.Rd +++ b/man/writeDLS.Rd @@ -17,14 +17,7 @@ Write results from the \code{DLS3.2} advisory method to a file. \note{ The resulting text file has Dos line endings (CRLF). } -\seealso{ -\code{\link{readDLS}} reads \code{DLS3.2} results from a file back into R. - -\code{\link[icesAdvice]{DLS3.2}} in the \pkg{icesAdvice} package can be used -to calculate catch advice for data-limited stocks (DLS). - -\code{\link{icesTAF-package}} gives an overview of the package. - +\examples{ \dontrun{ survey <- data.frame(year=2001:2010, randu[1:10,]) dls <- icesAdvice::DLS3.2(1000, survey$y) @@ -34,4 +27,13 @@ readDLS("dls.txt") file.remove("dls.txt") } + +} +\seealso{ +\code{\link{readDLS}} reads \code{DLS3.2} results from a file back into R. + +\code{\link[icesAdvice]{DLS3.2}} in the \pkg{icesAdvice} package can be used +to calculate catch advice for data-limited stocks (DLS). + +\code{\link{icesTAF-package}} gives an overview of the package. }