[Dplr-commits] r685 - in branches/redfit: . man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Sep 4 15:41:35 CEST 2013


Author: mvkorpel
Date: 2013-09-04 15:41:34 +0200 (Wed, 04 Sep 2013)
New Revision: 685

Modified:
   branches/redfit/DESCRIPTION
   branches/redfit/man/bai.in.Rd
   branches/redfit/man/bai.out.Rd
   branches/redfit/man/cms.Rd
   branches/redfit/man/detrend.Rd
   branches/redfit/man/detrend.series.Rd
   branches/redfit/man/ffcsaps.Rd
   branches/redfit/man/fill.internal.NA.Rd
   branches/redfit/man/hanning.Rd
   branches/redfit/man/redfit.Rd
   branches/redfit/man/rwi.stats.running.Rd
   branches/redfit/man/sea.Rd
   branches/redfit/man/series.rwl.plot.Rd
   branches/redfit/man/skel.plot.Rd
Log:
Load necessary packages in Examples.  The packages ("graphics",
"grDevices", "stats", "utils") should already be loaded, but that
might not always be the case.


Modified: branches/redfit/DESCRIPTION
===================================================================
--- branches/redfit/DESCRIPTION	2013-09-04 12:08:26 UTC (rev 684)
+++ branches/redfit/DESCRIPTION	2013-09-04 13:41:34 UTC (rev 685)
@@ -3,7 +3,7 @@
 Type: Package
 Title: Dendrochronology Program Library in R
 Version: 1.5.7
-Date: 2013-08-19
+Date: 2013-09-04
 Authors at R: c(person(c("Andrew", "G."), "Bunn", role = c("aut", "cph",
         "cre", "trl"), email = "andrew.bunn at wwu.edu"), person("Mikko",
         "Korpela", role = "aut"), person("Franco", "Biondi",

Modified: branches/redfit/man/bai.in.Rd
===================================================================
--- branches/redfit/man/bai.in.Rd	2013-09-04 12:08:26 UTC (rev 684)
+++ branches/redfit/man/bai.in.Rd	2013-09-04 13:41:34 UTC (rev 685)
@@ -27,6 +27,7 @@
   Nevada Reno, \acronym{USA}.  Patched and improved by Mikko Korpela. }
 \seealso{ \code{\link{bai.out}} }
 \examples{
+library(graphics)
 ## Toy
 n <- 100
 ## Make three fake tree-ring series to show that these funcs work on rwl objects

Modified: branches/redfit/man/bai.out.Rd
===================================================================
--- branches/redfit/man/bai.out.Rd	2013-09-04 12:08:26 UTC (rev 684)
+++ branches/redfit/man/bai.out.Rd	2013-09-04 13:41:34 UTC (rev 685)
@@ -29,6 +29,7 @@
 \seealso{ \code{\link{bai.in}} }
 \examples{
 \dontrun{
+library(graphics)
 ## Toy
 n <- 100
 ## Make three fake tree-ring series to show that these funcs work on rwl objects

Modified: branches/redfit/man/cms.Rd
===================================================================
--- branches/redfit/man/cms.Rd	2013-09-04 12:08:26 UTC (rev 684)
+++ branches/redfit/man/cms.Rd	2013-09-04 13:41:34 UTC (rev 685)
@@ -37,7 +37,8 @@
   dplR by Andy Bunn. Patched and improved by Mikko Korpela.
 }
 \seealso{ \code{\link{detrend}}, \code{\link{chron}}, \code{\link{rcs}} }
-\examples{data(gp.rwl)
+\examples{library(graphics)
+data(gp.rwl)
 data(gp.po)
 gp.rwi <- cms(rwl = gp.rwl, po = gp.po)
 gp.crn <- chron(gp.rwi)

Modified: branches/redfit/man/detrend.Rd
===================================================================
--- branches/redfit/man/detrend.Rd	2013-09-04 12:08:26 UTC (rev 684)
+++ branches/redfit/man/detrend.Rd	2013-09-04 13:41:34 UTC (rev 685)
@@ -65,6 +65,7 @@
 ca533.rwi <- detrend(rwl = ca533, method = "ModNegExp")
 
 \dontrun{
+library(grDevices)
 ## Detrend using all methods. Returns a list
 ca533.rwi <- detrend(rwl = ca533)
 ## Save a pdf of all series

Modified: branches/redfit/man/detrend.series.Rd
===================================================================
--- branches/redfit/man/detrend.series.Rd	2013-09-04 12:08:26 UTC (rev 684)
+++ branches/redfit/man/detrend.series.Rd	2013-09-04 13:41:34 UTC (rev 685)
@@ -88,7 +88,7 @@
 }
 \author{ Andy Bunn. Patched and improved by Mikko Korpela. }
 \seealso{ \code{\link{detrend}} }
-\examples{
+\examples{library(stats)
 ## Using a plausible representation of a tree-ring series
 gt <- 0.5 * exp (-0.05 * 1:200) + 0.2
 noise <- c(arima.sim(model = list(ar = 0.7), n = 200, mean = 1, sd = 0.5))

Modified: branches/redfit/man/ffcsaps.Rd
===================================================================
--- branches/redfit/man/ffcsaps.Rd	2013-09-04 12:08:26 UTC (rev 684)
+++ branches/redfit/man/ffcsaps.Rd	2013-09-04 13:41:34 UTC (rev 685)
@@ -49,6 +49,7 @@
 
 \examples{
 \dontrun{
+library(graphics)
 ## Use series CAM011 from the Campito dataset
 data(ca533)
 series <- ca533[, "CAM011"]

Modified: branches/redfit/man/fill.internal.NA.Rd
===================================================================
--- branches/redfit/man/fill.internal.NA.Rd	2013-09-04 12:08:26 UTC (rev 684)
+++ branches/redfit/man/fill.internal.NA.Rd	2013-09-04 13:41:34 UTC (rev 685)
@@ -52,6 +52,7 @@
 \seealso{ \code{\link{spline}}, \code{\link{approx}}
 }
 \examples{
+library(graphics)
 foo <- data.frame(x1=c(rnorm(5), NA, NA, rnorm(3)),
                   x2=c(rnorm(10)),
                   x3=c(NA, NA, rnorm(3), NA, rnorm(4)),

Modified: branches/redfit/man/hanning.Rd
===================================================================
--- branches/redfit/man/hanning.Rd	2013-09-04 12:08:26 UTC (rev 684)
+++ branches/redfit/man/hanning.Rd	2013-09-04 13:41:34 UTC (rev 685)
@@ -26,7 +26,8 @@
 \author{ Andy Bunn.  Patched and improved by Mikko Korpela. }
 \seealso{ \code{\link[stats]{filter} } }
 
-\examples{data(ca533)
+\examples{library(graphics)
+data(ca533)
 yrs <- as.numeric(rownames(ca533))
 y <- ca533[, 1]
 not.na <- !is.na(y)

Modified: branches/redfit/man/redfit.Rd
===================================================================
--- branches/redfit/man/redfit.Rd	2013-09-04 12:08:26 UTC (rev 684)
+++ branches/redfit/man/redfit.Rd	2013-09-04 13:41:34 UTC (rev 685)
@@ -227,6 +227,8 @@
 \examples{
 # Create a simulated tree-ring width series that has a red-noise
 # background and an embedded signal.
+library(graphics)
+library(stats)
 set.seed(123)
 nyrs <- 500
 yrs <- 1:nyrs

Modified: branches/redfit/man/rwi.stats.running.Rd
===================================================================
--- branches/redfit/man/rwi.stats.running.Rd	2013-09-04 12:08:26 UTC (rev 684)
+++ branches/redfit/man/rwi.stats.running.Rd	2013-09-04 13:41:34 UTC (rev 685)
@@ -203,6 +203,7 @@
 rwi.stats(ca533.rwi, ca533.ids)        # i.e. running.window = FALSE
 rwi.stats.legacy(ca533.rwi, ca533.ids) # rwi.stats prior to dplR 1.5.3
 \dontrun{
+library(graphics)
 ## Plot the chronology showing a potential cutoff year based on eps
 ca533.rwi <- detrend(rwl = ca533, method = "Spline") # detrend again
 ca533.crn <- chron(ca533.rwi)

Modified: branches/redfit/man/sea.Rd
===================================================================
--- branches/redfit/man/sea.Rd	2013-09-04 12:08:26 UTC (rev 684)
+++ branches/redfit/man/sea.Rd	2013-09-04 13:41:34 UTC (rev 685)
@@ -58,7 +58,8 @@
   
 }
 
-\examples{data(cana157)
+\examples{library(graphics)
+data(cana157)
 event.years <- c(1631, 1742, 1845)
 cana157.sea <- sea(cana157, event.years)
 foo <- cana157.sea$se.unscaled

Modified: branches/redfit/man/series.rwl.plot.Rd
===================================================================
--- branches/redfit/man/series.rwl.plot.Rd	2013-09-04 12:08:26 UTC (rev 684)
+++ branches/redfit/man/series.rwl.plot.Rd	2013-09-04 13:41:34 UTC (rev 685)
@@ -65,7 +65,8 @@
   \code{\link{corr.rwl.seg}}, \code{\link{corr.series.seg}},
   \code{\link{ccf.series.rwl}}
 }
-\examples{data(co021)
+\examples{library(utils)
+data(co021)
 dat <- co021
 flagged <- dat$"646244"
 names(flagged) <- rownames(dat)

Modified: branches/redfit/man/skel.plot.Rd
===================================================================
--- branches/redfit/man/skel.plot.Rd	2013-09-04 12:08:26 UTC (rev 684)
+++ branches/redfit/man/skel.plot.Rd	2013-09-04 13:41:34 UTC (rev 685)
@@ -74,7 +74,8 @@
 \author{ Andy Bunn. Patched and improved by Mikko Korpela. }
 \seealso{  \code{\link{Devices}}, \code{\link{hanning}}  }
 
-\examples{data(co021)
+\examples{library(grDevices)
+data(co021)
 x <- co021[,33]
 x.yrs <- as.numeric(rownames(co021))
 x.name <- colnames(co021)[33]



More information about the Dplr-commits mailing list