[R-gregmisc-users] SF.net SVN: r-gregmisc:[1714] trunk/gtools/man
Brought to you by:
warnes
From: <wa...@us...> - 2013-09-23 15:37:24
|
Revision: 1714 http://sourceforge.net/p/r-gregmisc/code/1714 Author: warnes Date: 2013-09-23 15:37:21 +0000 (Mon, 23 Sep 2013) Log Message: ----------- Make 'addLast()' defunct. Modified Paths: -------------- trunk/gtools/man/gtools-defunct.Rd trunk/gtools/man/gtools-deprecated.Rd trunk/gtools/man/lastAdd.Rd Removed Paths: ------------- trunk/gtools/man/addLast-deprecated.Rd Deleted: trunk/gtools/man/addLast-deprecated.Rd =================================================================== --- trunk/gtools/man/addLast-deprecated.Rd 2013-09-23 15:29:26 UTC (rev 1713) +++ trunk/gtools/man/addLast-deprecated.Rd 2013-09-23 15:37:21 UTC (rev 1714) @@ -1,78 +0,0 @@ -\name{addLast-deprecated} -\alias{addLast-deprecated} -\title{Add a function to be executed when R exits.} -\description{ - Add a function to be executed when R exits. -} -\usage{ -addLast(fun) -} -\arguments{ - \item{fun}{Function to be called.} -} -\details{ - \code{addLast} defines the \code{.Last} function in the global - environment (if not already present) or redifines it so that the - function \code{fun} will be called when R exits. The latter is - accomplished by saving the current definition of \code{.Last} and - creating a new \code{.Last} function that calls \code{fun} and then - the original \code{.Last} function. -} -\value{ - None. -} -\note{This function has been deprecated in favor of \code{lastAdd} - because it creates/modifies the definition of '.Last' in the - global environment, which is expressly disallowed by the CRAN - policies. } -\author{Gregory R. Warnes \email{gr...@wa...}} -\seealso{ - \code{\link[base]{.Last}}, - \code{\link[gtools]{lastAdd}} -} -\examples{ - -## Print a couple of cute messages when R exits. -helloWorld <- function() cat("\nHello World!\n") -byeWorld <- function() cat("\nGoodbye World!\n") - -addLast(byeWorld) -addLast(helloWorld) - -\dontrun{ -q("no") - -## Should yield: -## -## Save workspace image? [y/n/c]: n -## -## Hello World! -## -## Goodbye World! -## -## Process R finished at Tue Nov 22 10:28:55 2005 -} - -## Unix-flavour example: send Rplots.ps to printer on exit. -myLast <- function() -{ - cat("Now sending PostScript graphics to the printer:\n") - system("lpr Rplots.ps") - cat("bye bye...\n") -} -addLast(myLast) -\dontrun{ -quit("yes") - -## Should yield: -## -## Now sending PostScript graphics to the printer: -## lpr: job 1341 queued -## bye bye... -## -## Process R finished at Tue Nov 22 10:28:55 2005 -} - -} -\keyword{programming} - Modified: trunk/gtools/man/gtools-defunct.Rd =================================================================== --- trunk/gtools/man/gtools-defunct.Rd 2013-09-23 15:29:26 UTC (rev 1713) +++ trunk/gtools/man/gtools-defunct.Rd 2013-09-23 15:37:21 UTC (rev 1714) @@ -1,20 +1,30 @@ \name{gtools-defunct} \alias{gtools-defunct} \alias{assert} +\alias{addLast} \title{Deprecated Functions in the gtools package} \description{ These functions are no longer available in gtools. } \usage{ assert(FLAG) +addLast(fun) } \arguments{ \item{FLAG}{ Expression that should evaluate to a boolean vector} + \item{fun}{Function to be called.} } \details{ - \code{assert} is a defunct synonym for \code{\link[base]{stopifnot}}. + \itemize{ + \item{ \code{assert} is a defunct synonym for + \code{\link[base]{stopifnot}}. } + \item{ \code{addLast} has been replaced by \code{lastAdd}, which has + the same purpose but appled using different syntax. } + } } \seealso{ - \code{\link{Defunct}} + \code{\link[base]{Defunct}} + \code{\link[base]{stopifnot}} + \code{\link[gtools]{lastAdd}} } \keyword{misc} Modified: trunk/gtools/man/gtools-deprecated.Rd =================================================================== --- trunk/gtools/man/gtools-deprecated.Rd 2013-09-23 15:29:26 UTC (rev 1713) +++ trunk/gtools/man/gtools-deprecated.Rd 2013-09-23 15:37:21 UTC (rev 1714) @@ -1,29 +1,26 @@ \name{gtools-deprecated} \alias{gtools-deprecated} -\alias{addLast} \title{Deprecated Functions in the gtools package} \description{ These functions are provided for compatibility with older versions of gtools, and may be defunct as soon as the next release. } \usage{ -addLast(fun) } \arguments{ - \item{fun}{Function to be called.} } \details{ - The original help page for these functions is often - available at \code{help("oldName-deprecated")} (note the quotes). - - \itemize{ - \item{ \code{addLast} has been replaced by \code{lastAdd}, which has - the same purpose but appled using different syntax. } - } + gtools currently contains no deprecated functions. + +% The original help page for these functions is often +% available at \code{help("oldName-deprecated")} (note the quotes). +% +% \itemize{ +% \item{} +% } } \seealso{ \code{\link{Deprecated}} - \code{\link[gtools]{lastAdd}} } \keyword{misc} Modified: trunk/gtools/man/lastAdd.Rd =================================================================== --- trunk/gtools/man/lastAdd.Rd 2013-09-23 15:29:26 UTC (rev 1713) +++ trunk/gtools/man/lastAdd.Rd 2013-09-23 15:37:21 UTC (rev 1714) @@ -25,7 +25,7 @@ } \note{ - This function replaces the (now deprecated) \code{addLast} function. + This function replaces the (now defunct) \code{addLast} function. } \value{ A new function to be used for \code{.Last}. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |