File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed
Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ export(pat_rnw)
4848export(pat_rst)
4949export(pat_tex)
5050export(purl)
51+ export(rand_seed)
5152export(read_chunk)
5253export(render_html)
5354export(render_jekyll)
Original file line number Diff line number Diff 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 / }
Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments