Skip to content

Commit

Permalink
tweak/remove confusing links to self (spotted by Lluis Revilla)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@87653 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
smeyer committed Jan 27, 2025
1 parent dd28cee commit 152bb32
Show file tree
Hide file tree
Showing 21 changed files with 30 additions and 28 deletions.
6 changes: 3 additions & 3 deletions src/library/base/man/call.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ as.call(x)
If you think of using \code{as.call(\var{string})}, consider using
\code{\link{str2lang}(\var{string})} which is an efficient version of
\code{\link{parse}(text=\var{string})}.
Note that \code{\link{call}()} and \code{\link{as.call}()}, when
applicable, are much preferable to these \code{\link{parse}()} based
Note that \code{call()} and \code{as.call()}, when
applicable, are much preferable to these \code{parse()} based
approaches.
}
}
Expand All @@ -80,7 +80,7 @@ as.call(x)
\code{\link{expression}},
\code{\link{function}}.

Producing \code{\link{call}}s etc from character: \code{\link{str2lang}} and
Producing \code{call}s etc from character: \code{\link{str2lang}} and
\code{\link{parse}}.
}
\references{
Expand Down
2 changes: 1 addition & 1 deletion src/library/base/man/double.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ as.single(x, \dots)
%% keep next the same in double.Rd & numeric.Rd
\section{Note on names}{
It is a historical anomaly that \R has two names for its
floating-point vectors, \code{\link{double}} and \code{\link{numeric}}
floating-point vectors, \code{double} and \code{numeric}
(and formerly had \code{real}).

\code{double} is the name of the \link{type}.
Expand Down
2 changes: 1 addition & 1 deletion src/library/base/man/is.unsorted.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ is.unsorted(x, na.rm = FALSE, strictly = FALSE)
objects with an S3 class (where the \code{>=} or \code{>} method is
used to compare \code{x[i]} with \code{x[i-1]} for \code{i} in
\code{2:length(x)}) or with an S4 class where you have to provide a
method for \code{\link{is.unsorted}()}.
method for \code{is.unsorted()}.
%% FIXME: rather want '>' and '>=' methods for S4 classes be sufficient
}
\note{
Expand Down
2 changes: 1 addition & 1 deletion src/library/base/man/numeric.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ is.numeric(x)
%% keep next the same in double.Rd & numeric.Rd
\section{Note on names}{
It is a historical anomaly that \R has two names for its
floating-point vectors, \code{\link{double}} and \code{\link{numeric}}
floating-point vectors, \code{double} and \code{numeric}
(and formerly had \code{real}).

\code{double} is the name of the \link{type}.
Expand Down
4 changes: 2 additions & 2 deletions src/library/base/man/parse.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ str2expression(text)
}
\item{\code{str2expression(s)}: }{for a \code{\link{character}} vector
\code{s}, \code{str2expression(s)} corresponds to
\code{\link{parse}(text = s, keep.source=FALSE)}, which is always of
\code{parse(text = s, keep.source=FALSE)}, which is always of
type (\code{\link{typeof}}) and \code{\link{class}} \code{expression}.
}
\item{\code{str2lang(s)}: }{for a \code{\link{character}} string
\code{s}, \code{str2lang(s)} corresponds to
\code{\link{parse}(text = s, keep.source=FALSE)[[1]]} (plus a check
\code{parse(text = s, keep.source=FALSE)[[1]]} (plus a check
that both \code{s} and the \code{parse(*)} result are of length one)
which is typically a \code{call} but may also be a \code{symbol} aka
\code{\link{name}}, \code{\link{NULL}} or an atomic constant such as
Expand Down
2 changes: 1 addition & 1 deletion src/library/base/man/showConnections.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ getAllConnections()
re-directed by \code{\link{sink}} (and in some circumstances the
output from \code{stdout()} can be split: see the help page).

The encoding for \code{\link{stdin}()} when redirected can
The encoding for \code{stdin()} when redirected can
be set by the command-line flag \option{--encoding}.

\code{nullfile()} returns filename of the null device (\code{"/dev/null"}
Expand Down
4 changes: 2 additions & 2 deletions src/library/base/man/taskCallback.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ removeTaskCallback(id)
internal callback list to be removed.
Integer indices are 1-based, i.e the first element is 1.
The names of currently registered handlers is available
using \code{\link{getTaskCallbackNames}}
and is also returned in a call to \code{\link{addTaskCallback}}.
using \code{\link{getTaskCallbackNames}()}
and is also returned in a call to \code{addTaskCallback}.
}
\item{name}{character: names to be used.}
}
Expand Down
2 changes: 1 addition & 1 deletion src/library/grDevices/man/axisTicks.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ axisTicks(usr, log, axp = NULL, nint = 5)
\code{axisTicks(usr, *)} calls \code{.axisPars(usr, ..)} to set
\code{axp} when that is missing or \code{NULL}.
Apart from that, \code{\link{axisTicks}()} just calls the C function
Apart from that, \code{axisTicks()} just calls the C function
\code{CreateAtVector()} in \file{\var{R}/src/main/plot.c} which is also
called by the base \pkg{graphics} package function
\code{\link[graphics]{axis}(side, *)} when its argument \code{at} is not
Expand Down
7 changes: 4 additions & 3 deletions src/library/graphics/man/plot.default.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@
coordinates is acceptable. See the function \code{\link{xy.coords}}
for details. If supplied separately, they must be of the same length.}
\item{type}{1-character string giving the type of plot desired. The
following values are possible, for details, see \code{\link{plot}}:
\code{"p"} for points, \code{"l"} for lines,
following values are possible, for details, see \code{\link[base]{plot}}:
\code{"p"} for points,
\code{"l"} for lines,
\code{"b"} for both points and lines,
\code{"c"} for empty points joined by lines,
\code{"o"} for overplotted points and lines,
Expand Down Expand Up @@ -129,7 +130,7 @@
Murrell, P. (2005) \emph{R Graphics}. Chapman & Hall/CRC Press.
}
\seealso{
\code{\link{plot}}, \code{\link{plot.window}}, \code{\link{xy.coords}}.
\code{\link[base]{plot}}, \code{\link{plot.window}}, \code{\link{xy.coords}}.
For thousands of points, consider using \code{\link{smoothScatter}}
instead.
}
Expand Down
2 changes: 1 addition & 1 deletion src/library/grid/man/grid.add.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ setChildren(x, children)
\author{Paul Murrell}
\seealso{
\code{\link{grob}}, \code{\link{getGrob}},
\code{\link{addGrob}}, \code{\link{removeGrob}}.
\code{\link{removeGrob}}.
}
\keyword{dplot}
2 changes: 1 addition & 1 deletion src/library/grid/man/grid.get.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ getGrob(gTree, gPath, strict = FALSE, grep = FALSE, global = FALSE)
}
\author{Paul Murrell}
\seealso{
\code{\link{grob}}, \code{\link{getGrob}},
\code{\link{grob}},
\code{\link{addGrob}}, \code{\link{removeGrob}}.
}
\examples{
Expand Down
3 changes: 2 additions & 1 deletion src/library/grid/man/grid.remove.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ removeGrob(gTree, gPath, strict = FALSE, grep = FALSE,
}
\author{Paul Murrell}
\seealso{
\code{\link{grob}}, \code{\link{getGrob}}.
\code{\link{grob}}, \code{\link{getGrob}},
\code{\link{addGrob}}.
}
\keyword{dplot}
2 changes: 1 addition & 1 deletion src/library/methods/man/setIs.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ setIs(class1, class2, test=NULL, coerce=NULL, replace=NULL,
\code{\link{setAs}}. The difference between the two is simply
that \code{\link{setAs}} will require a call to \code{\link{as}}
for a conversion to take place, whereas after the call to
\code{\link{setIs}}, objects will be automatically converted to
\code{setIs}, objects will be automatically converted to
the superclass.

The automatic feature is the dangerous part, mainly because it
Expand Down
2 changes: 1 addition & 1 deletion src/library/parallel/man/makeCluster.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ getDefaultCluster()
#endif
It is good practice to shut down the workers by calling
\code{\link{stopCluster}}: however the workers will terminate
\code{stopCluster}: however the workers will terminate
themselves once the socket on which they are listening for commands
becomes unavailable, which it should if the master \R session is
completed (or its process dies).
Expand Down
2 changes: 1 addition & 1 deletion src/library/parallel/man/unix/children.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ mckill(process, signal = 2L)
\eqn{2^{31} - 1}{2^31 - 1} bytes (and still are on 32-bit platforms).
}
\seealso{
\code{\link{mcfork}}, \code{\link{sendMaster}}, \code{\link{mcparallel}}
\code{\link{mcfork}}, \code{\link{mcparallel}}
}
\examples{\dontrun{
p <- mcparallel(scan(n = 1, quiet = TRUE))
Expand Down
2 changes: 1 addition & 1 deletion src/library/stats/man/NLSstRtAsymptote.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ NLSstRtAsymptote(xy)
\seealso{
\code{\link{sortedXyData}},
\code{\link{NLSstClosestX}},
\code{\link{NLSstRtAsymptote}},
\code{\link{NLSstLfAsymptote}},
\code{\link{selfStart}}
}
\examples{
Expand Down
2 changes: 1 addition & 1 deletion src/library/stats/man/dendrogram.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ is.leaf(object)
dendrograms into a new one which has \code{x} and \code{y} (and
optional further arguments) as branches. Note that before \R 3.1.2,
\code{adjust = "none"} was used implicitly, which is invalid when,
e.g., the dendrograms are from \code{\link{as.dendrogram}(hclust(..))}.
e.g., the dendrograms are from \code{as.dendrogram(hclust(..))}.
\code{\link{nobs}(object)} returns the total number of leaves (the
\code{members} attribute, see above).
Expand Down
2 changes: 1 addition & 1 deletion src/library/stats/man/dist.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ as.dist(m, diag = FALSE, upper = FALSE)
\item{call}{optionally, the \code{\link{call}} used to create the
object.}
\item{method}{optionally, the distance method used; resulting from
\code{\link{dist}()}, the (\code{\link{match.arg}()}ed) \code{method}
\code{dist()}, the (\code{\link{match.arg}()}ed) \code{method}
argument.}
}
\references{
Expand Down
2 changes: 1 addition & 1 deletion src/library/stats/man/stepfun.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ as.stepfun(x, \dots)
\item{"yleft", "yright"}{the function values \emph{outside} the knots}
\item{"method"}{(always \code{== "constant"}, from
\code{\link{approxfun}(.)}).}
The knots are also available via \code{\link{knots}(fn)}.
The knots are also available via \code{knots(fn)}.
}
\author{
Martin Maechler, \email{maechler@stat.math.ethz.ch} with some basic
Expand Down
4 changes: 2 additions & 2 deletions src/library/stats/man/uniroot.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ uniroot(f, interval, \dots,
when \code{f()} does not have differing signs at the endpoints. The
default, \code{"no"}, keeps the search interval and hence produces
an error. Can be abbreviated.}
\item{check.conv}{logical indicating whether a convergence warning of the
underlying \code{\link{uniroot}} should be caught as an error and if
\item{check.conv}{logical indicating whether a convergence warning
should be caught as an error and if
non-convergence in \code{maxiter} iterations should be an error
instead of a warning.}
\item{tol}{the desired accuracy (convergence tolerance).}
Expand Down
2 changes: 1 addition & 1 deletion src/library/utils/man/update.packages.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ new.packages(lib.loc = NULL, repos = getOption("repos"),
Incompatible with \code{type = "both"}.
}
\item{method}{Download method, see \code{\link{download.file}}.
Unused by \code{\link{old.packages}} if a non-\code{NULL} \code{available}
Unused by \code{old.packages} if a non-\code{NULL} \code{available}
is supplied.}
\item{instlib}{character string giving the library directory where to
install the packages.}
Expand Down

0 comments on commit 152bb32

Please sign in to comment.