Skip to content

Commit ba196fb

Browse files
author
smeyer
committed
markup
git-svn-id: https://svn.r-project.org/R/trunk@88243 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent f2988cb commit ba196fb

File tree

5 files changed

+28
-30
lines changed

5 files changed

+28
-30
lines changed

doc/manual/R-exts.texi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7385,7 +7385,8 @@ E.g., @file{abline.Rd} contains
73857385
@group
73867386
\details@{
73877387
Typical usages are
7388-
\preformatted@{abline(a, b, ...)
7388+
\preformatted@{
7389+
abline(a, b, ...)
73897390
......
73907391
@}
73917392
@end group

src/library/base/man/Arithmetic.Rd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ x \%/\% y
5858
integer division, i.e., \code{q <- x \%/\% y := floor(x/y)}, as promoted
5959
by Donald Knuth, see the Wikipedia page on \sQuote{Modulo operation},
6060
and hence \code{sign(r) == sign(y)}. It is guaranteed that
61-
\describe{
62-
\item{\code{ x == (x \%\% y) + y * (x \%/\% y) }}{\sspace (up to rounding error)}
63-
}
61+
(up to rounding error)
62+
\preformatted{ x == (x \%\% y) + y * (x \%/\% y) }
6463
unless \code{y == 0} where the result of \code{\%\%} is
6564
\code{\link{NA_integer_}} or \code{\link{NaN}} (depending on the
6665
\code{\link{typeof}} of the arguments) or for some non-\link{finite}

src/library/graphics/man/abline.Rd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ abline(a = NULL, b = NULL, h = NULL, v = NULL, reg = NULL,
2828
}
2929
\details{
3030
Typical usages are
31-
\preformatted{abline(a, b, ...)
31+
\preformatted{
32+
abline(a, b, ...)
3233
abline(h =, ...)
3334
abline(v =, ...)
3435
abline(coef =, ...)

src/library/graphics/man/par.Rd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,10 @@ par(\dots, no.readonly = FALSE)
347347
\item{\code{lend}}{The line end style. This can be specified as an
348348
integer or string:
349349
\describe{
350-
\item{\code{0}}{and \code{"round"} mean rounded line caps
350+
\item{\code{0} and \code{"round"}}{mean rounded line caps
351351
[\emph{default}];}
352-
\item{\code{1}}{and \code{"butt"} mean butt line caps;}
353-
\item{\code{2}}{and \code{"square"} mean square line caps.}
352+
\item{\code{1} and \code{"butt"}}{mean butt line caps;}
353+
\item{\code{2} and \code{"square"}}{mean square line caps.}
354354
}
355355
}
356356
\item{\code{lheight}}{The line height multiplier.
@@ -362,10 +362,10 @@ par(\dots, no.readonly = FALSE)
362362
\item{\code{ljoin}}{The line join style.
363363
This can be specified as an integer or string:
364364
\describe{
365-
\item{\code{0}}{and \code{"round"} mean rounded line joins
365+
\item{\code{0} and \code{"round"}}{mean rounded line joins
366366
[\emph{default}];}
367-
\item{\code{1}}{and \code{"mitre"} mean mitred line joins;}
368-
\item{\code{2}}{and \code{"bevel"} mean bevelled line joins.}
367+
\item{\code{1} and \code{"mitre"}}{mean mitred line joins;}
368+
\item{\code{2} and \code{"bevel"}}{mean bevelled line joins.}
369369
}
370370
}
371371
\item{\code{lmitre}}{The line mitre limit. This controls when

src/library/methods/man/Methods_for_S3.Rd

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ For details, see \link{S3Methods}.
4444
In modern \R, a function \code{meth} in a package is registered as an S3 method
4545
for function \code{fun} and class \code{Class} by
4646
including in the package's \code{NAMESPACE} file the directive
47-
48-
\code{S3method(fun, Class, meth)}
49-
47+
\preformatted{
48+
S3method(fun, Class, meth)
49+
}
5050
By default (and traditionally), the third argument is taken to be the
5151
function \code{fun.Class}; that is,
5252
the name of the
@@ -63,9 +63,9 @@ register S3 methods rather than requiring the package to be attached.
6363
6464
\section{Methods for S4 Classes}{
6565
66-
Two possible mechanisms for implementing a method corresponding to an
67-
S4 class, there are two possibilities are to register it as an S3 method with the
68-
S4 class name or to define and set an S4 method, which will have the
66+
There are two possible mechanisms for implementing a method
67+
corresponding to an S4 class: register it as an S3 method with the
68+
S4 class name or define and set an S4 method, which will have the
6969
side effect of creating an S4 generic version of this function.
7070
7171
For most situations either works, but
@@ -79,20 +79,17 @@ extending \code{"character"} and intending to ignore upper- and
7979
lower-case.
8080
The base function \code{\link{unique}} dispatches S3 methods.
8181
To define the class and a method for this function:
82-
83-
\code{setClass("uncased", contains = "character")}
84-
85-
\code{unique.uncased <- function(x, incomparables = FALSE, ...)
86-
nextMethod(tolower(x))}
87-
88-
\code{setMethod("unique", "uncased", unique.uncased)}
89-
82+
\preformatted{
83+
setClass("uncased", contains = "character")
84+
unique.uncased <- function(x, incomparables = FALSE, ...)
85+
NextMethod(tolower(x))
86+
setMethod("unique", "uncased", unique.uncased)
87+
}
9088
In addition, the \code{NAMESPACE} for the package should contain:
91-
92-
\code{S3method(unique, uncased)}
93-
94-
\code{exportMethods(unique)}
95-
89+
\preformatted{
90+
S3method(unique, uncased)
91+
exportMethods(unique)
92+
}
9693
The result is to define identical S3 and S4 methods and ensure that all
9794
calls to \code{unique} will dispatch that method when appropriate.
9895
}

0 commit comments

Comments
 (0)