[Distr-commits] r1117 - in branches/distr-2.7/pkg/distrEllipse: R man
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sun Sep 4 10:38:02 CEST 2016
Author: ruckdeschel
Date: 2016-09-04 10:38:02 +0200 (Sun, 04 Sep 2016)
New Revision: 1117
Added:
branches/distr-2.7/pkg/distrEllipse/man/distrEllipse-deprecated.Rd
Modified:
branches/distr-2.7/pkg/distrEllipse/R/SphericalDistribution.R
branches/distr-2.7/pkg/distrEllipse/man/SphericalDistribution-class.Rd
Log:
ported Deprecated message in distrEllipse from trunk to branch 2.7
Modified: branches/distr-2.7/pkg/distrEllipse/R/SphericalDistribution.R
===================================================================
--- branches/distr-2.7/pkg/distrEllipse/R/SphericalDistribution.R 2016-09-04 08:37:13 UTC (rev 1116)
+++ branches/distr-2.7/pkg/distrEllipse/R/SphericalDistribution.R 2016-09-04 08:38:02 UTC (rev 1117)
@@ -43,30 +43,20 @@
## wrappers:
setMethod("plot.rd", "SphericalDistribution",
- function(x, ... ){ .Deprecated("plotRd", package="distrEllipse",
- msg = gettext("To avoid clashes with S3 method dispatch,
- this function will soon be replaced by 'plotRd'"))
+ function(x, ... ){ .Deprecated("plotRd")
plot(x at radDistr,...)})
-setMethod("r.rd", "SphericalDistribution", function(object){
-.Deprecated("rRd", package="distrEllipse",
- msg = gettext("To avoid clashes with S3 method dispatch,
- this function will soon be replaced by 'rRd'"))
- r(object at radDistr)})
-setMethod("d.rd", "SphericalDistribution", function(object){
-.Deprecated("dRd", package="distrEllipse",
- msg = gettext("To avoid clashes with S3 method dispatch,
- this function will soon be replaced by 'dRd'"))
-d(object at radDistr)})
-setMethod("p.rd", "SphericalDistribution", function(object){
-.Deprecated("pRd", package="distrEllipse",
- msg = gettext("To avoid clashes with S3 method dispatch,
- this function will soon be replaced by 'pRd'"))
- p(object at radDistr)})
-setMethod("q.rd", "SphericalDistribution", function(object){
-.Deprecated("qRd", package="distrEllipse",
- msg = gettext("To avoid clashes with S3 method dispatch,
- this function will soon be replaced by 'qRd'"))
- q(object at radDistr)})
+setMethod("r.rd", "SphericalDistribution", function(object) {
+ .Deprecated("rRd")
+ r(object at radDistr)})
+setMethod("d.rd", "SphericalDistribution", function(object) {
+ .Deprecated("dRd")
+ d(object at radDistr)})
+setMethod("p.rd", "SphericalDistribution", function(object) {
+ .Deprecated("pRd")
+ p(object at radDistr)}
+setMethod("q.rd", "SphericalDistribution", function(object) {
+ .Deprecated("qRd")
+ q(object at radDistr)}
setMethod("plotRd", "SphericalDistribution",
function(x, ... ) plot(x at radDistr,...))
Modified: branches/distr-2.7/pkg/distrEllipse/man/SphericalDistribution-class.Rd
===================================================================
--- branches/distr-2.7/pkg/distrEllipse/man/SphericalDistribution-class.Rd 2016-09-04 08:37:13 UTC (rev 1116)
+++ branches/distr-2.7/pkg/distrEllipse/man/SphericalDistribution-class.Rd 2016-09-04 08:38:02 UTC (rev 1117)
@@ -19,11 +19,6 @@
\alias{q.rd,SphericalDistribution-method}
\alias{radDistr}
\alias{radDistr<-}
-\alias{plot.rd}
-\alias{r.rd}
-\alias{d.rd}
-\alias{p.rd}
-\alias{q.rd}
\alias{plotRd}
\alias{rRd}
\alias{dRd}
@@ -112,25 +107,21 @@
always returns the unit matrix (in the respective dimension). }
\item{radDistr}{\code{signature(object = "SphericalDistribution")}: access method for
slot \code{radDistr}. }
- \item{r.rd}{\code{signature(object = "SphericalDistribution")}: wrapped access method for
- slot \code{r} of slot \code{radDistr}. From version 2.6 on, an alias \code{rRd} is
- introduced to replace \code{r.rd} on the long run in order to avoid clashes with
- S3-method inheritance. }
- \item{d.rd}{\code{signature(object = "SphericalDistribution")}: wrapped access method for
- slot \code{d} of slot \code{radDistr}. From version 2.6 on, an alias \code{dRd} is
- introduced to replace \code{d.rd} on the long run in order to avoid clashes with
- S3-method inheritance. }
- \item{p.rd}{\code{signature(object = "SphericalDistribution")}: wrapped access method for
- slot \code{p} of slot \code{radDistr}. From version 2.6 on, an alias \code{pRd} is
- introduced to replace \code{p.rd} on the long run in order to avoid clashes with
- S3-method inheritance. }
- \item{q.rd}{\code{signature(object = "SphericalDistribution")}: wrapped access method for
- slot \code{q} of slot \code{radDistr}. From version 2.6 on, an alias \code{qRd} is
- introduced to replace \code{q.rd} on the long run in order to avoid clashes with
- S3-method inheritance. }
- \item{plot.rd}{\code{signature(x = "SphericalDistribution")}: utility; calls \code{plot}
- for slot \code{radDistr}. From version 2.6 on, an alias \code{plotRd} is introduced
- to replace \code{plot.rd} on the long run in order to avoid clashes with S3-method inheritance.}
+ \item{rRd}{\code{signature(object = "SphericalDistribution")}: wrapped access method for
+ slot \code{r} of slot \code{radDistr}. From version 2.6 on, replaces deprecated
+ \code{r.Rd} to avoid clashes with S3-method inheritance. }
+ \item{dRd}{\code{signature(object = "SphericalDistribution")}: wrapped access method for
+ slot \code{d} of slot \code{radDistr}. From version 2.6 on, replaces deprecated
+ \code{d.Rd} to avoid clashes with S3-method inheritance. }
+ \item{pRd}{\code{signature(object = "SphericalDistribution")}: wrapped access method for
+ slot \code{p} of slot \code{radDistr}. From version 2.6 on, replaces deprecated
+ \code{p.Rd} to avoid clashes with S3-method inheritance. }
+ \item{qRd}{\code{signature(object = "SphericalDistribution")}: wrapped access method for
+ slot \code{q} of slot \code{radDistr}. From version 2.6 on, replaces deprecated
+ \code{q.Rd} to avoid clashes with S3-method inheritance. }
+ \item{plotRd}{\code{signature(x = "SphericalDistribution")}: utility; calls \code{plot}
+ for slot \code{radDistr}. From version 2.6 on, replaces deprecated
+ \code{plot.Rd} to avoid clashes with S3-method inheritance. }
\item{plot}{\code{signature(x = "SphericalDistribution", y = "missing")}:
plot for an spherically symmetric distribution; see \code{\link{plot-methods}}. }
\item{show}{\code{signature(object = "SphericalDistribution")}:
Added: branches/distr-2.7/pkg/distrEllipse/man/distrEllipse-deprecated.Rd
===================================================================
--- branches/distr-2.7/pkg/distrEllipse/man/distrEllipse-deprecated.Rd (rev 0)
+++ branches/distr-2.7/pkg/distrEllipse/man/distrEllipse-deprecated.Rd 2016-09-04 08:38:02 UTC (rev 1117)
@@ -0,0 +1,35 @@
+\name{distrEllipse-deprecated}
+\alias{distrEllipse-deprecated}
+\alias{plot.rd}
+\alias{r.rd}
+\alias{d.rd}
+\alias{p.rd}
+\alias{q.rd}
+\title{Deprecated Functions in Package \pkg{distrEllipse}}
+\description{
+ These functions are provided for compatibility with older versions of
+ \pkg{distrEllipse} only, and may be defunct as soon as the next release.
+}
+\section{Methods}{
+ From version 2.6 on, we deprecate former versions of S4-methods
+ \code{rRd}, \code{dRd}, \code{pRd}, \code{qRd}, and \code{plotRd} of style
+ <name>.rd due to clashes with S3-method inheritance.
+ More specifically, this concerns the following methods:
+ \describe{
+ \item{r.rd}{\code{signature(object = "SphericalDistribution")}: wrapped access method for
+ slot \code{r} of slot \code{radDistr}.}
+ \item{d.rd}{\code{signature(object = "SphericalDistribution")}: wrapped access method for
+ slot \code{d} of slot \code{radDistr}. }
+ \item{p.rd}{\code{signature(object = "SphericalDistribution")}: wrapped access method for
+ slot \code{p} of slot \code{radDistr}. }
+ \item{q.rd}{\code{signature(object = "SphericalDistribution")}: wrapped access method for
+ slot \code{q} of slot \code{radDistr}. }
+ \item{plot.rd}{\code{signature(x = "SphericalDistribution")}: utility; calls \code{plot}
+ for slot \code{radDistr}. }
+ }
+}
+
+\seealso{
+ \code{\link{Deprecated}}
+}
+\keyword{misc}
More information about the Distr-commits
mailing list