View source: R/common-reference.R
| dmai_reference | R Documentation |
Reads inst/extdata/reference.csv: one row per published number, with its source, the R call
that recomputes it with this package (call), the expression that extracts the number from the result
(extract, in terms of x), the printed value and the digits to compare. The same file drives the test
of published values and the vignette that reproduces the published examples. Each distinct call is evaluated once.
dmai_reference(source = NULL, evaluate = FALSE, level = 1)
source |
optional regular expression; keep rows whose |
evaluate |
logical; evaluate the rows and add columns |
level |
largest |
A data.table with columns id, source, quantity, call, extract,
value, digits, level, note (and computed, agrees).
Muhammad Yaseen (myaseen208@gmail.com)
Other dmai utilities:
dmai_notation(),
dmai_save(),
dmai_theme()
ref <-
dmai_reference(
source = NULL
, evaluate = FALSE
, level = 1
)
ref
dmai_reference(
source = "."
, evaluate = TRUE
, level = 1
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.