Skip to content

Commit c47ead5

Browse files
committed
re-roxygenize
1 parent e709675 commit c47ead5

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export(pat_rnw)
4848
export(pat_rst)
4949
export(pat_tex)
5050
export(purl)
51+
export(rand_seed)
5152
export(read_chunk)
5253
export(render_html)
5354
export(render_jekyll)

man/dep_auto.Rd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ build_dep(path)
3333
need to adjust the \code{path} argument here to make sure
3434
this function can find the cache files \file{__objects}
3535
and \file{__globals}.
36+
37+
\code{build_dep} is a deprecated alias for
38+
\code{dep_auto} and may be removed in the future.
3639
}
3740
\references{
3841
\url{http://yihui.name/knitr/demo/cache/}

man/rand_seed.Rd

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
\docType{data}
2+
\name{rand_seed}
3+
\alias{rand_seed}
4+
\title{An unevaluated expression to return .Random.seed if exists}
5+
\format{language { if (exists(".Random.seed", envir = globalenv())) ; get(".Random.seed", envir = globalenv()) }}
6+
\usage{
7+
rand_seed
8+
}
9+
\description{
10+
This expression returns \code{.Random.seed} when
11+
\code{eval(rand_seed)} and \code{NULL} otherwise.
12+
}
13+
\details{
14+
It is designed to work with
15+
\code{opts_knit$set(cache.extra = rand_seed)} for
16+
reproducibility of chunks that involve with random number
17+
generation. See references.
18+
}
19+
\examples{
20+
eval(rand_seed)
21+
rnorm(1) # .Random.seed is created (or modified)
22+
eval(rand_seed)
23+
}
24+
\references{
25+
\url{http://yihui.name/knitr/demo/cache/}
26+
}
27+
\keyword{datasets}

0 commit comments

Comments
 (0)