Insert a sample information section in RMarkdown reports. Use this function within
a code chunk and make sure to set the chunk option results = 'asis'
.
report_Sample(x = .sample(), delim) .sample(sample = NA, type = NA, exp_age = NA, n_aliquots = NA, measurement_dates = NA, irr_doses = NA)
x |
|
---|---|
delim |
|
sample |
|
type |
|
exp_age |
|
n_aliquots |
|
measurement_dates |
|
irr_doses |
|
Text output via cat
.
#> #> #> \newpage #> #> # Sample information #> #> **Sample**: K9999 #> #> **Type**: Coral #> #> **Expected age range**: Holocene #> #> **Number of aliquots**: 20 #> #> **Date of measurement(s)**: 29/02/2016 #> #> **Irradiation doses (Gy)**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 #>report_Sample(.sample(sample = "K9999", type = "Coral", exp_age = "Holocene", n_aliquots = 20, measurement_dates = "29/02/2016", irr_dose = 1:20), delim = "\\newpage")#> #> #> \newpage #> #> # Sample information #> #> **Sample**: K9999 #> #> **Type**: Coral #> #> **Expected age range**: Holocene #> #> **Number of aliquots**: 20 #> #> **Date of measurement(s)**: 29/02/2016 #> #> **Irradiation doses (Gy)**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 #>