Skip to content

Commit 72e9dc1

Browse files
author
hornik
committed
Auto-generate citations and references.
git-svn-id: https://svn.r-project.org/R/trunk@88550 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent e9ac91a commit 72e9dc1

File tree

7 files changed

+31
-45
lines changed

7 files changed

+31
-45
lines changed

src/library/base/man/Bessel.Rd

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ besselY(x, nu)
4646
or \eqn{e^{x} K_{\nu}(x)}{exp(x) K(x;nu)} are returned.
4747

4848
For \eqn{\nu < 0}{nu < 0}, formulae 9.1.2 and 9.6.2 from
49-
\bibcite{Abramowitz & Stegun}
49+
\bibcitet{R:Abramowitz+Stegun:1972}
5050
are applied (which is probably suboptimal), except for
5151
\code{besselK} which is symmetric in \code{nu}.
5252

@@ -72,10 +72,8 @@ besselY(x, nu)
7272
}
7373
}
7474
\references{
75-
Abramowitz, M. and Stegun, I. A. (1972).
76-
\emph{Handbook of Mathematical Functions}.
77-
Dover, New York;
78-
Chapter 9: Bessel Functions of Integer Order.
75+
\bibinfo{R:Abramowitz+Stegun:1972}{footer}{Chapter 9: Bessel Functions of Integer Order.}
76+
\bibshow{*}
7977

8078
In order of \dQuote{Source} citation above:
8179

src/library/base/man/Hyperbolic.Rd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ atanh(x)
3535

3636
Branch cuts are consistent with the inverse trigonometric functions
3737
\code{asin} \emph{et seq}, and agree with those defined in
38-
\bibcite{Abramowitz & Stegun, figure 4.7, page 86}.
38+
\bibcitet{|R:Abramowitz+Stegun:1972|figure 4.7\\\\\\, page 86}.
3939
The behaviour actually on the cuts
4040
follows the C99 standard which requires continuity coming round the
4141
endpoint in a counter-clockwise direction.
@@ -54,9 +54,9 @@ atanh(x)
5454
version of \code{tanh()} for numeric \code{x}.
5555
}
5656
\references{
57-
Abramowitz, M. and Stegun, I. A. (1972)
58-
\emph{Handbook of Mathematical Functions.} New York: Dover.\cr
59-
Chapter 4. Elementary Transcendental Functions: Logarithmic,
60-
Exponential, Circular and Hyperbolic Functions
57+
\bibinfo{R:Abramowitz+Stegun:1972}{footer}{Chapter 4. Elementary
58+
Transcendental Functions: Logarithmic, Exponential, Circular and
59+
Hyperbolic Functions}
60+
\bibshow{*}
6161
}
6262
\keyword{math}

src/library/base/man/Special.Rd

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,23 @@ lfactorial(x)
5252
\deqn{B(a,b) = \frac{\Gamma(a)\Gamma(b)}{\Gamma(a+b)}.}{B(a,b) = \Gamma(a)\Gamma(b)/\Gamma(a+b).}
5353
The formal definition is
5454
\deqn{B(a, b) = \int_0^1 t^{a-1} (1-t)^{b-1} dt}{integral_0^1 t^(a-1) (1-t)^(b-1) dt}
55-
(\bibcite{Abramowitz and Stegun section 6.2.1, page 258}).
55+
\bibcitep{|R:Abramowitz+Stegun:1972|section 6.2.1\\\\\\, page 258}.
5656
Note that it is only
5757
defined in \R for non-negative \code{a} and \code{b}, and is infinite
5858
if either is zero.
5959

6060
The functions \code{gamma} and \code{lgamma} return the gamma function
6161
\eqn{\Gamma(x)} and the natural logarithm of \emph{the absolute value of} the
6262
gamma function. The gamma function is defined by
63-
(\bibcite{Abramowitz and Stegun section 6.1.1, page 255})
63+
\bibcitep{|R:Abramowitz+Stegun:1972|section 6.1.1\\\\\\, page 255}
6464
\deqn{\Gamma(x) = \int_0^\infty t^{x-1} e^{-t} dt}{\Gamma(x) = integral_0^Inf t^(x-1) exp(-t) dt}
6565
for all \eqn{x > 0}, from which the recursions \eqn{\Gamma(x+1) =
6666
x\Gamma(x)} and then \eqn{\Gamma(x+n) = (x+n-1)(x+n-2)\cdots x \Gamma(x)}
6767
for all non-negative integers \eqn{n}. Solving for \eqn{\Gamma(x)} and
6868
analytic continuation leads to the expression for non-integer negative real numbers,
6969
\deqn{\Gamma(x) = \frac{\Gamma(x + n)}{(x + n -1) \cdots (x + 1)x}, \ n \in \mathbb{Z}^{+}, -n < x < 0,%
7070
}{\Gamma(x) = \Gamma(x + n)/((x + n -1) ... (x + 1)x), n in N, -n < x < 0,}
71-
see \bibcite{Abramowitz and Stegun (6.1.16 or 6.1.22, page 256)}.
71+
see \bibcitet{|R:Abramowitz+Stegun:1972|6.1.16 or 6.1.22\\\\\\, page 256}.
7272
%
7373
The gamma function is not defined for zero and negative integers (when
7474
\code{NaN} is returned). There will be a warning on possible loss of
@@ -87,7 +87,7 @@ lfactorial(x)
8787
\frac{\Gamma'(x)}{\Gamma(x)}}{digamma(x) = \psi(x) = d/dx{ln \Gamma(x)} = \Gamma'(x) / \Gamma(x)}
8888
\eqn{\psi} and its derivatives, the \code{psigamma()} functions, are
8989
often called the \sQuote{\I{polygamma}} functions, e.g.\sspace{}in
90-
\bibcite{Abramowitz and Stegun (section 6.4.1, page 260)}; and higher
90+
\bibcitet{|R:Abramowitz+Stegun:1972|section 6.4.1\\\\\\, page 260}; and higher
9191
derivatives (\code{deriv = 2:4}) have occasionally been called
9292
\sQuote{\I{tetragamma}}, \sQuote{\I{pentagamma}}, and \sQuote{\I{hexagamma}}.
9393

@@ -123,15 +123,12 @@ lfactorial(x)
123123
Abramowitz and Stegun is used.
124124
}
125125
\references{
126-
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)
127-
\emph{The New S Language}.
128-
Wadsworth & Brooks/Cole. (For \code{gamma} and \code{lgamma}.)
129-
130-
Abramowitz, M. and Stegun, I. A. (1972)
131-
\emph{Handbook of Mathematical Functions}. New York: Dover.
132-
\url{https://en.wikipedia.org/wiki/Abramowitz_and_Stegun} provides
133-
links to the full text which is in public domain.\cr
134-
Chapter 6: Gamma and Related Functions.
126+
\bibinfo{R:Abramowitz+Stegun:1972}{footer}{
127+
\\\\\\url{https://en.wikipedia.org/wiki/Abramowitz_and_Stegun} provides
128+
links to the full text which is in public domain.\\\\\\cr
129+
Chapter 6: Gamma and Related Functions.}
130+
\bibinfo{R:Becker+Chambers+Wilks:1988}{footer}{(For \\\\\\code{gamma} and \\\\\\code{lgamma}.)}
131+
\bibshow{*, R:Becker+Chambers+Wilks:1988}
135132
}
136133
\seealso{
137134
\code{\link{Arithmetic}} for simple, \code{\link{sqrt}} for

src/library/base/man/Trig.Rd

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ tanpi(x)
7272

7373
\section{Complex values}{
7474
For the inverse trigonometric functions, branch cuts are defined as in
75-
\bibcite{Abramowitz and Stegun, figure 4.4, page 79}.
75+
\bibcitet{|R:Abramowitz+Stegun:1972|figure 4.4\\\\\\, page 79}.
7676

7777
For \code{asin} and \code{acos}, there are two cuts, both along
7878
the real axis: \eqn{\left(-\infty, -1\right]}{(-Inf, -1]} and
@@ -97,19 +97,14 @@ tanpi(x)
9797
\code{\link[=S4groupGeneric]{Math}} group generic.
9898
}
9999
\references{
100-
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)
101-
\emph{The New S Language}.
102-
Wadsworth & Brooks/Cole.
103-
104-
Abramowitz, M. and Stegun, I. A. (1972). \emph{Handbook of
105-
Mathematical Functions}. New York: Dover.\cr
106-
Chapter 4. Elementary Transcendental Functions: Logarithmic,
107-
Exponential, Circular and Hyperbolic Functions
100+
\bibinfo{R:Abramowitz+Stegun:1972}{footer}{Chapter 4. Elementary
101+
Transcendental Functions: Logarithmic, Exponential, Circular and
102+
Hyperbolic Functions}
103+
\bibshow{*, R:Becker+Chambers+Wilks:1988}
108104

109105
For \code{cospi}, \code{sinpi}, and \code{tanpi} the C11 extension
110106
ISO/IEC TS 18661-4:2015 (draft at
111107
\url{https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1950.pdf}).
112-
113108
}
114109
\examples{
115110
x <- seq(-3, 7, by = 1/8)

src/library/base/man/UseMethod.Rd

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ NextMethod(generic = NULL, object = NULL, \dots)
165165
method. It is possible to change the method that \code{NextMethod}
166166
would dispatch by manipulating \code{.Class}, but \sQuote{this is not
167167
recommended unless you understand the inheritance mechanism
168-
thoroughly} (\bibcite{Chambers & Hastie, 1992, p.\sspace{}469}).
168+
thoroughly} \bibcitep{|R:Chambers:1992b|page 469}.
169169
}
170170
\note{
171171
This scheme is called \emph{S3} (S version 3). For new projects,
@@ -179,9 +179,6 @@ NextMethod(generic = NULL, object = NULL, \dots)
179179
\code{\link{getS3method}}, \code{\link{is.object}}.
180180
}
181181
\references{
182-
Chambers, J. M. (1992)
183-
\emph{Classes and methods: object-oriented programming in S.}
184-
Appendix A of \emph{Statistical Models in S}
185-
eds J. M. Chambers and T. J. Hastie, Wadsworth & Brooks/Cole.
182+
\bibshow{*}
186183
}
187184
\keyword{methods}

src/library/base/man/formatc.Rd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ prettyNum(x, big.mark = "", big.interval = 3L,
8989

9090
\item{flag}{for \code{formatC}, a character string giving a
9191
format modifier as in
92-
\bibcite{Kernighan and Ritchie (1988, page 243)}
92+
\bibcitet{|R:Kernighan+Ritchie:1988|page 243}
9393
or the C+99 standard.\describe{
9494
\item{\code{"0"}}{pads leading zeros;}
9595
\item{\code{"-"}}{does left adjustment,}
@@ -229,8 +229,7 @@ prettyNum(x, big.mark = "", big.interval = 3L,
229229
%% Martin Maechler
230230
}
231231
\references{
232-
Kernighan, B. W. and Ritchie, D. M. (1988)
233-
\emph{The C Programming Language.} Second edition. Prentice Hall.
232+
\bibshow{*}
234233
}
235234
\seealso{
236235
\code{\link{format}}.

src/library/base/man/sprintf.Rd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ gettextf(fmt, \dots, domain = NULL, trim = TRUE)
4141
\dQuote{skip} an argument.)
4242
4343
The following is abstracted from
44-
\bibcite{Kernighan and Ritchie (1988)}:
44+
\bibcitet{R:Kernighan+Ritchie:1988}:
4545
however the actual implementation will follow the C99
4646
standard and fine details (especially the behaviour under user error)
4747
may depend on the platform. References to numbered arguments come from
@@ -185,9 +185,9 @@ gettextf(fmt, \dots, domain = NULL, trim = TRUE)
185185
}
186186
187187
\references{
188-
Kernighan, B. W. and Ritchie, D. M. (1988)
189-
\emph{The C Programming Language.} Second edition, Prentice Hall.
190-
Describes the format options in table B-1 in the Appendix.
188+
\bibinfo{R:Kernighan+Ritchie:1988}{footer}{Describes the format
189+
options in table B-1 in the Appendix.}
190+
\bibshow{*}
191191
192192
The C Standards, especially ISO/IEC 9899:1999 for \sQuote{C99}. Links
193193
can be found at

0 commit comments

Comments
 (0)