knitr::opts_chunk$set(fig.path = "figures/", dpi = 300, dev = "png")
set.seed(333)
fmt <- function(x, d = 0) formatC(x, format = "f", digits = d, big.mark = ",")
cols <- c(blue = "#2563eb", green = "#10b981", slate = "#64748b")
ggplot2::theme_set(ggplot2::theme_minimal(base_size = 11))Monte Carlo Simulation Tools for REDD+ Uncertainty Estimates
Introduction
In August 2021, the Board of Architecture for REDD+ Transactions (ART) approved version 2.0 of The REDD+ Environmental Excellence Standard, known as TREES (Architecture for REDD+ Transactions, 2021). REDD+ is the reduction of emissions from deforestation and forest degradation. TREES required each Participant, a national or subnational jurisdiction reporting to ART, to propagate the errors in its activity data and emission factors by Monte Carlo simulation. Activity data were the hectares deforested each year, and emission factors were the tonnes of carbon dioxide equivalent (tCO2e) released per hectare. A Monte Carlo simulation drew each input many times from its probability distribution and recomputed the emission reductions with every draw. The spread of those results set an uncertainty deduction from the credits issued.
Scope of work
This report first set out the TREES 2.0 rules for uncertainty and summarised what published Monte Carlo studies of forest biomass had found. It then worked the calculation through in six steps, as R code run on open data (Table 2). The emission factor came from a 1-hectare tree census in Virginia, United States, and the activity data from a published sample of a land change map. These inputs were illustrative, so the results showed the method and described no jurisdiction. Model and allometric errors, which TREES left out of the deduction, were tested separately by cross-validation.
Registry requirements
Section 8 of TREES 2.0 set the rules for uncertainty (Architecture for REDD+ Transactions, 2021, p. 45). It stated that “uncertainty shall be quantified in terms of the half-width of the 90% confidence interval as a percentage of the estimated emissions”. It also stated that “Monte Carlo simulations shall use the 90% confidence interval and a simulation n of 10,000”. The half-width was half the distance between the lower and upper bounds of the interval. Where the distribution of an input was unknown, “the bootstrapping method may be used”, meaning repeated resampling of the observed data with replacement. Uncertainty was “assessed on both activity data and emission factors” (p. 45).
The Standard also set which errors entered the simulation. Sampling errors “must be estimated and included in the uncertainty calculation” (Architecture for REDD+ Transactions, 2021, p. 45). Where activity data came from remote sensing, “area estimates and confidence intervals must be reported” (p. 27). Model and allometric errors were left out, “as such errors are considered consistent between emissions in the crediting level and crediting periods” (p. 45). An allometric error was the error of the equation that predicted the biomass of a tree from its diameter and height.
A footnote to the uncertainty rules added, “In cases where emission factors are derived from biomass maps, uncertainty of this approach must be included” (Architecture for REDD+ Transactions, 2021, p. 45). The same footnote pointed to the good practices of Duncanson et al. (2021) for calibrating and validating biomass maps. Their protocol tabulated the sources of uncertainty in six calculation steps, from allometric model development and sample plot area to sampling variability and the map model (Duncanson et al., 2021, Tables 4.1a and 4.1b).
Simulated values also replaced the arithmetic estimates. The Standard stated that “simulated values should replace arithmetic values in Section 10”, the section that calculated emission reductions and removals (Architecture for REDD+ Transactions, 2021, p. 45). At the end of each crediting period, a Participant could calculate one deduction from the summed uncertainty of its gross emission reductions and removals since joining ART. The Standard added, “In cases where the uncertainty contributions to date exceed this total deduction number, additional TREES credits will be issued into the Participant’s registry account” (p. 45).
Two equations turned the simulated interval into a deduction (Table 1). Equation 11 scaled the half-width into an adjustment factor, and Equation 10 multiplied the gross emission reductions and removals of the year by that factor (Architecture for REDD+ Transactions, 2021, p. 46). Equation 22 then subtracted the uncertainty deduction, with the buffer withholding and the leakage deduction, to give the TREES credits of the year (p. 53).
\[ UNC_t = (GHG\ ER_t + GHG\ REMV_t) \times UA_t \tag{10} \]
\[ UA_t = 0.524417 \times \frac{90\%\ CI_t}{1.645006} \tag{11} \]
| Term | Definition in TREES 2.0 |
|---|---|
| \(UNC_t\) | TREES uncertainty deduction in year t; tCO2e |
| \(UA_t\) | TREES uncertainty adjustment factor in year t |
| \(GHG\ ER_t\) | GHG ERs in year t; tCO2e (Section 10, Equation 12 or Equation 14) |
| \(GHG\ REMV_t\) | GHG removals in year t; tCO2e (Section 10) |
| \(0.524417\) | t value at ART allowable risk |
| \(90\%\ CI_t\) | Half width of 90% confidence interval expressed as a percent of the mean emissions or removals in year t; % |
| \(1.645006\) | t value at 90% confidence level |
Methods review
For studies published from 2003 to 2023, a rapid review searched Scopus, Web of Science and Google Scholar for Monte Carlo estimates of the uncertainty of biomass or carbon (Table 5). It retained twelve studies, ten from that period and two earlier (Table 6).
Four of these studies found the allometric or biomass model to be the largest source of error. In central Panama, Chave et al. (2004) found that “the most important source of error is currently related to the choice of the allometric model”. Near Kisangani, Democratic Republic of the Congo, model choice made up 76 per cent of the total error of 1-hectare estimates (Picard et al., 2015). In northwest Oregon, United States, model selection could add 20 to 40 per cent uncertainty to estimates of live-tree carbon (Melson et al., 2011). In French Guiana, the biomass sub-model dominated, while tree height and wood specific gravity added negligible uncertainty but could cause bias (Molto et al., 2013).
In three other studies, variation between plots was the largest source. Across 227 plots in New Zealand, plot-to-plot variation amounted to 9.1 per cent of the mean aboveground carbon stock (Holdaway et al., 2014). At Hubbard Brook, New Hampshire, plot variability (6 per cent) exceeded allometric uncertainty (5 per cent) within the 8 per cent uncertainty of tree nitrogen (Yanai et al., 2010). In the Tapajós National Forest, Brazil, 21 random plots of 0.25 hectare would have estimated mean tree biomass within 20 per cent at 95 per cent confidence (Keller et al., 2001). In Santa Catarina, Brazil, the residual and parameter uncertainty of volume models had negligible effects on large-area mean volume (McRoberts et al., 2015).
Errors from remote sensing differed by forest. Over lidar-mapped tropical forest in Ghana, the prediction error of aboveground biomass (AGB) exceeded 20 per cent at 1-hectare resolution (Chen et al., 2015). Over northern Minnesota, United States, the relative error of lidar-predicted AGB fell to about 11 per cent at the same scale (Chen et al., 2016).
Model choice was the largest error in four studies, yet TREES 2.0 left model and allometric errors out of the deduction. Under TREES, the deduction therefore rested on the sampling errors of the forest plots and of the activity data sample.
Current tools
ART published a Monte Carlo workbook that estimated emission reductions from deforestation and degradation across four strata. It drew each input from a stated distribution and computed emissions for a reference period and a results period. It then reported the half-width of the 90 per cent interval of their difference. Its example ran 100 draws, against the 10,000 that TREES 2.0 required. McMurray et al. (2017) set out the same steps for spreadsheet users, from fitting distributions to calculating percent uncertainty.
Worked example
The worked example followed six steps (Table 2). Steps 1 and 2 estimated the two inputs with their sampling errors. Step 3 propagated them through 10,000 draws, and Steps 4 to 6 applied TREES Equations 11 and 10. A final model check tested the allometric fit that TREES left out of the deduction.
| Step | Calculation | Basis |
|---|---|---|
| 1 | Emission factor from 1,360 trees, bootstrapped 10,000 times | TREES 2.0, section 8 |
| 2 | Deforested area and its standard error from a stratified sample | Olofsson et al. (2014) |
| 3 | 10,000 draws of emission reductions, (reference area − crediting area) × emission factor | TREES 2.0, section 8 |
| 4 | Half-width of the 90% interval as a percentage of the mean | TREES 2.0, Equation 11 |
| 5 | Uncertainty adjustment factor | TREES 2.0, Equation 11 |
| 6 | Uncertainty deduction | TREES 2.0, Equation 10 |
Emission factor
In 2008, the first census of the Smithsonian Conservation Biology Institute ForestGEO plot in Virginia, United States, measured the trees behind the emission factor. A 1-hectare extract of that census came with the allodb package (Gonzalez-Akre et al., 2022). The AGB of each stem was computed with allodb::get_biomass() from its diameter at breast height (DBH), genus, species and the plot coordinates, then summed by tree.
Carbon was taken as 0.47 of dry biomass, the default of the Intergovernmental Panel on Climate Change (IPCC) (Aalde et al., 2006, Table 4.3). It was converted to carbon dioxide by the ratio 44/12. The example assumed that no carbon remained after deforestation, so the emission factor equalled the aboveground carbon stock in tCO2e per hectare. A Participant’s factor would also include the other carbon pools and subtract the stock left after deforestation.
The distribution of the hectare stock was unknown, so the example used the bootstrap that TREES allowed in that case. The trees were resampled with replacement 10,000 times, keeping the stems of each tree together, and each resample gave one hectare stock. This treated the extract as a sample of trees from a larger forest.
# SCBI ForestGEO 2008 census, 1 ha extract, allodb package, https://github.com/ropensci/allodb, source https://forestgeo.si.edu/
stems <- allodb::scbi_stem1 |> dplyr::mutate(agb = allodb::get_biomass(dbh = dbh, genus = genus, species = species, coords = c(-78.2, 38.9)))
trees <- stems |> dplyr::summarise(agb = sum(agb), .by = treeID)
ef <- replicate(1e4, sum(sample(trees$agb, replace = TRUE))) / 1000 * 0.47 * 44 / 12
sw <- shapiro.test(trees$agb)
round(c(stems = nrow(stems), trees = nrow(trees), agb_t = sum(trees$agb) / 1000, skew = e1071::skewness(trees$agb), ef_mean = mean(ef), ef_sd = sd(ef)), 2)
# stems trees agb_t skew ef_mean ef_sd
# 2287.00 1360.00 224.20 5.82 385.92 38.66The extract held 2,287 stems on 1,360 trees, with 224.2 t of AGB. Tree AGB was strongly right-skewed, with a skewness of 5.82 (Figure 1). A Shapiro-Wilk test rejected normality [W = 0.295, p < 0.001]. The bootstrapped emission factor averaged 386 ± 39 tCO2e ha−1 (90 per cent interval 324 to 451).
p1 <- ggplot2::ggplot(trees, ggplot2::aes(agb)) + ggplot2::geom_histogram(bins = 40, fill = cols[["slate"]]) + ggplot2::scale_x_log10() + ggplot2::labs(x = "Tree aboveground biomass (kg, log scale)", y = "Trees", tag = "a")
p2 <- ggplot2::ggplot(data.frame(ef), ggplot2::aes(ef)) + ggplot2::geom_histogram(bins = 50, fill = cols[["blue"]]) + ggplot2::geom_vline(xintercept = quantile(ef, c(0.05, 0.95)), linetype = "dashed") + ggplot2::labs(x = expression(Emission~factor~(tCO[2]*e~ha^-1)), y = "Draws", tag = "b")
patchwork::wrap_plots(p1, p2)
Activity data
The activity data came from the worked example of Olofsson et al. (2014), a stratified random sample of 640 Landsat pixels from a land change map of 900,000 hectares (Table 3). Each sample pixel carried its map class and its reference class, the class an interpreter assigned from imagery. TREES 2.0 required area estimates and their confidence intervals for such activity data (Architecture for REDD+ Transactions, 2021, p. 27).
The stratified estimator of Olofsson et al. (2014) weighted the sample proportions within each map class by the share of the map in that class. For reference class k, the area and its standard error were as follows.
\[ \hat{A}_k = A \sum_i W_i \frac{n_{ik}}{n_{i\cdot}}, \qquad SE(\hat{A}_k) = A \sqrt{\sum_i W_i^2 \, \frac{\frac{n_{ik}}{n_{i\cdot}} \left(1 - \frac{n_{ik}}{n_{i\cdot}}\right)}{n_{i\cdot} - 1}} \]
Here A was the map area, and Wi was the share of the map in map class i. The count nik was the number of sample pixels of map class i in reference class k, and ni· was the sample size of map class i.
# Olofsson et al. (2014) worked example, https://doi.org/10.1016/j.rse.2014.02.015, counts as coded in the mapaccuracy help page, https://CRAN.R-project.org/package=mapaccuracy
classes <- c("Deforestation", "Forest gain", "Stable forest", "Stable non-forest")
n <- matrix(c(66, 0, 5, 4, 0, 55, 8, 12, 1, 0, 153, 11, 2, 1, 9, 313), 4, byrow = TRUE, dimnames = list(classes, classes))
pixels <- c(200000, 150000, 3200000, 6450000)
w <- pixels / sum(pixels)
A <- sum(pixels) * 30^2 / 1e4
p <- n / rowSums(n)
area <- A * colSums(w * p)
se <- A * sqrt(colSums(w^2 * p * (1 - p) / (rowSums(n) - 1)))
round(rbind(area, se, hw90 = qnorm(0.95) * se))
# Deforestation Forest gain Stable forest Stable non-forest
# area 21158 11686 285770 581386
# se 3142 1916 7913 8307
# hw90 5168 3152 13016 13664data.frame(`Map class` = classes, n, Total = rowSums(n), `Map share` = w, check.names = FALSE) |> flextable::flextable() |> flextable::colformat_double(j = "Map share", digits = 3) |> flextable::autofit()Map class |
Deforestation |
Forest gain |
Stable forest |
Stable non-forest |
Total |
Map share |
|---|---|---|---|---|---|---|
Deforestation |
66 |
0 |
5 |
4 |
75 |
0.020 |
Forest gain |
0 |
55 |
8 |
12 |
75 |
0.015 |
Stable forest |
1 |
0 |
153 |
11 |
165 |
0.320 |
Stable non-forest |
2 |
1 |
9 |
313 |
325 |
0.645 |
The deforested area was 21,158 ha with a standard error of 3,142 ha. Its 90 per cent interval was ± 5,168 ha, or 24.4 per cent of the estimate. The example took this area as the annual deforestation of the reference period. It assumed a crediting year in which deforestation fell by half, with the same relative standard error.
Monte Carlo draws
Each of 10,000 draws took one emission factor from the bootstrap and one area for each period. Areas were drawn from normal distributions truncated at zero, following the advice to truncate “so that there are only values greater than zero” (McMurray et al., 2017, p. 12). Within a draw, one emission factor multiplied both periods, so its error was shared rather than drawn twice. Emission reductions for draw j were computed as follows, where ADref and ADt were the reference-period and crediting-year areas.
\[ ER_j = (AD_{ref,j} - AD_{t,j}) \times EF_j \]
ad_ref <- truncnorm::rtruncnorm(1e4, a = 0, mean = area[1], sd = se[1])
ad_t <- truncnorm::rtruncnorm(1e4, a = 0, mean = area[1] / 2, sd = se[1] / 2)
er <- (ad_ref - ad_t) * efConfidence half-width
The half-width was half the distance between the 5th and 95th percentiles of the 10,000 simulated emission reductions, divided by their mean. ART’s workbook took its interval from these percentiles, which described the spread of the simulated values. The standard error of their mean would not, since it narrowed as draws were added.
sims <- list(`Emission factor (tCO₂e ha⁻¹)` = ef, `Reference-period area (ha)` = ad_ref, `Crediting-year area (ha)` = ad_t, `Emission reductions (tCO₂e)` = er)
purrr::imap(sims, \(x, k) data.frame(Quantity = k, Mean = mean(x), `Standard deviation` = sd(x), `5th percentile` = quantile(x, 0.05), `95th percentile` = quantile(x, 0.95), `Half-width (%)` = diff(quantile(x, c(0.05, 0.95))) / 2 / mean(x) * 100, check.names = FALSE)) |> purrr::list_rbind() |> flextable::flextable() |> flextable::colformat_double(digits = 0) |> flextable::colformat_double(j = "Half-width (%)", digits = 1) |> flextable::autofit()Quantity |
Mean |
Standard deviation |
5th percentile |
95th percentile |
Half-width (%) |
|---|---|---|---|---|---|
Emission factor (tCO₂e ha⁻¹) |
386 |
39 |
324 |
451 |
16.4 |
Reference-period area (ha) |
21,117 |
3,134 |
15,908 |
26,330 |
24.7 |
Crediting-year area (ha) |
10,567 |
1,562 |
8,023 |
13,100 |
24.0 |
Emission reductions (tCO₂e) |
4,071,494 |
1,419,232 |
1,785,492 |
6,477,414 |
57.6 |
Emission reductions averaged 4,071,494 ± 1,419,232 tCO2e (90 per cent interval 1,785,492 to 6,477,414), a half-width of 57.6 per cent (Table 4, Figure 2). The activity data carried most of this uncertainty. The emission factor had a half-width of 16.4 per cent, against 57.6 per cent for the emission reductions.
ggplot2::ggplot(data.frame(er = er / 1e6), ggplot2::aes(er)) + ggplot2::geom_histogram(bins = 60, fill = cols[["green"]]) + ggplot2::geom_vline(xintercept = q / 1e6, linetype = "dashed") + ggplot2::geom_vline(xintercept = mean(er) / 1e6) + ggplot2::labs(x = expression(Emission~reductions~(MtCO[2]*e)), y = "Draws")
Uncertainty deduction
Equation 11 turned the half-width of 57.6 per cent into an adjustment factor of 18.4 per cent. Equation 10 multiplied the simulated mean emission reductions of 4,071,494 tCO2e by that factor, with no removals in the example. The uncertainty deduction was 747,877 tCO2e, leaving 3,323,617 tCO2e before the buffer and leakage deductions of Equation 22.
Model check
TREES 2.0 left allometric error out of the deduction, so this check informed the choice of model only. A single log-log model of stem AGB on DBH, fitted across all species, was tested against the allodb estimates. It was refitted to 100 random splits of the stems, each training on 80 per cent and testing on the remaining 20 per cent. This resampling was Monte Carlo cross-validation, which the caret package named leave-group-out cross-validation (LGOCV).
folds <- rsample::mc_cv(stems, prop = 0.8, times = 100)
cv <- purrr::imap(folds$splits, \(s, i) { m <- lm(log(agb) ~ log(dbh), rsample::analysis(s)); te <- rsample::assessment(s); data.frame(fold = i, obs = log(te$agb), pred = predict(m, te), train = sqrt(mean(residuals(m)^2))) }) |> purrr::list_rbind()
rmse <- cv |> dplyr::summarise(test = sqrt(mean((obs - pred)^2)), train = train[1], r2 = cor(obs, pred)^2, .by = fold)
round(c(colMeans(rmse[, -1]), ratio = mean(rmse$test) / mean(rmse$train)), 3)
# test train r2 ratio
# 0.185 0.187 0.995 0.991Test-fold root mean square error (RMSE) averaged 0.185 on the natural log scale, against 0.187 on the training folds. The RMSE ratio of test to training folds was 0.991, below the threshold of 1.1 above which a model was rejected as overfitted. The coefficient of determination (R²) averaged 0.995 across test folds (Figure 3).
ggplot2::ggplot(cv, ggplot2::aes(pred, obs)) + ggplot2::geom_point(shape = 1, alpha = 0.1, colour = cols[["slate"]]) + ggplot2::geom_abline(colour = cols[["blue"]]) + ggplot2::coord_equal() + ggplot2::labs(x = "Predicted log AGB (kg)", y = "Observed log AGB (kg)")
Appendix
| Parameter | Values |
|---|---|
| Keywords | Monte Carlo simulations; biomass estimation; carbon stock uncertainty; REDD+ projects; forest carbon accounting; allometric uncertainty |
| Databases | Scopus; Web of Science; Google Scholar; grey literature of the United Nations Framework Convention on Climate Change and the IPCC |
| Publication years | 2003 to 2023, with two earlier studies retained |
| Focus | Monte Carlo estimation of biomass and carbon stock uncertainty; uncertainty in allometric equations and plot measurements; Monte Carlo methods in REDD+ carbon accounting |
| Inclusion | Peer-reviewed articles and high-impact reviews; case studies of REDD+ projects; methodological advances or critiques of Monte Carlo approaches |
| Study | Place | Errors propagated | Main finding |
|---|---|---|---|
| Brown et al. (1995) | Rondônia, Brazil | Plot size, 474 trees on 1 ha | Plots under 2,000 m² usually gave biomass estimates significantly different from larger plots; emergent and large canopy trees dominated biomass |
| Keller et al. (2001) | Tapajós National Forest, Brazil | Sampling and allometric errors, 392 ha | Total biomass of 372 Mg ha⁻¹ with a conservative error of about 50%; 21 random 0.25 ha plots would estimate mean tree biomass within 20% at 95% confidence |
| Chave et al. (2004) | Central Panama | Tree measurement, allometric model, plot size, plot network | Choice of allometric model the most important source of error |
| Yanai et al. (2010) | Hubbard Brook, New Hampshire, United States | Allometry, tissue nitrogen, plot variability, diameter measurement | Tree nitrogen uncertain by 8%, from plot variability 6%, allometry 5% and tissue nitrogen 3% |
| Melson et al. (2011) | Northwest Oregon, United States | Model selection | Model selection may add 20 to 40% uncertainty to live-tree carbon |
| Cohen et al. (2013) | Kenya, validated in Mozambique | Allometric model, tree to landscape | Mixed-effects generic equation for Kenyan mangroves, validated in the Zambezi Delta (R² = 0.96) |
| Molto et al. (2013) | French Guiana | Height, wood specific gravity and biomass sub-models | Biomass sub-model the main source; height and wood specific gravity negligible but a possible cause of bias |
| Holdaway et al. (2014) | New Zealand, 227 plots | Measurement, model and sampling errors | Plot-to-plot variation the greatest source, 9.1% of mean aboveground carbon stock |
| Chen et al. (2015) | Ghana | Trees to plots to lidar pixels | AGB prediction error over 20% at 1 ha resolution |
| McRoberts et al. (2015) | Santa Catarina, Brazil | Volume model residual and parameter uncertainty | Negligible effects on large-area mean volume |
| Picard et al. (2015) | Kisangani, Democratic Republic of the Congo | Measurement, prediction, model choice and sampling | Model choice 76% of total error at 1 ha; weighted ensemble of models reduced it |
| Chen et al. (2016) | Northern Minnesota, United States | Trees to plots to lidar pixels across scales | Relative AGB error about 11% at 1 ha |
Session runtime
sessioninfo::session_info()
# ─ Session info ───────────────────────────────────────────────────────────────
# setting value
# version R version 4.4.1 (2024-06-14)
# os macOS 15.8.3
# system aarch64, darwin20
# ui X11
# language (EN)
# collate en_CA.UTF-8
# ctype en_CA.UTF-8
# tz America/Vancouver
# date 2026-11-27
# pandoc 3.10 @ /opt/local/bin/ (via rmarkdown)
# quarto 1.7.33 @ /usr/local/bin/quarto
#
# ─ Packages ───────────────────────────────────────────────────────────────────
# package * version date (UTC) lib source
# allodb 0.0.1.9000 2025-12-24 [1] Github (ropensci/allodb@1cfe846)
# askpass 1.2.1 2024-10-04 [1] CRAN (R 4.4.1)
# class 7.3-23 2025-01-01 [1] CRAN (R 4.4.1)
# cli 3.6.5 2025-04-23 [1] CRAN (R 4.4.1)
# codetools 0.2-20 2024-03-31 [2] CRAN (R 4.4.1)
# data.table 1.18.2.1 2026-01-27 [1] CRAN (R 4.4.3)
# digest 0.6.39 2025-11-19 [1] CRAN (R 4.4.3)
# dplyr 1.2.0 2026-02-03 [1] CRAN (R 4.4.3)
# e1071 1.7-17 2025-12-18 [1] CRAN (R 4.4.3)
# evaluate 1.0.5 2025-08-27 [1] CRAN (R 4.4.1)
# farver 2.1.2 2024-05-13 [1] CRAN (R 4.4.1)
# fastmap 1.2.0 2024-05-15 [1] CRAN (R 4.4.1)
# flextable 0.9.11 2026-02-13 [1] CRAN (R 4.4.3)
# fontBitstreamVera 0.1.1 2017-02-01 [1] CRAN (R 4.4.1)
# fontLiberation 0.1.0 2016-10-15 [1] CRAN (R 4.4.1)
# fontquiver 0.2.1 2017-02-01 [1] CRAN (R 4.4.0)
# furrr 0.3.1 2022-08-15 [1] CRAN (R 4.4.0)
# future 1.70.0 2026-03-14 [1] CRAN (R 4.4.3)
# gdtools 0.5.0 2026-02-09 [1] CRAN (R 4.4.3)
# generics 0.1.4 2025-05-09 [1] CRAN (R 4.4.1)
# ggplot2 4.0.2 2026-02-03 [1] CRAN (R 4.4.3)
# globals 0.19.1 2026-03-13 [1] CRAN (R 4.4.3)
# glue 1.8.0 2024-09-30 [1] CRAN (R 4.4.1)
# gtable 0.3.6 2024-10-25 [1] CRAN (R 4.4.1)
# htmltools 0.5.9 2025-12-04 [1] CRAN (R 4.4.3)
# htmlwidgets 1.6.4 2023-12-06 [1] CRAN (R 4.4.0)
# jsonlite 2.0.0 2025-03-27 [1] CRAN (R 4.4.1)
# knitr 1.51 2025-12-20 [1] CRAN (R 4.4.3)
# labeling 0.4.3 2023-08-29 [1] CRAN (R 4.4.1)
# lifecycle 1.0.5 2026-01-08 [1] CRAN (R 4.4.3)
# listenv 0.10.1 2026-03-10 [1] CRAN (R 4.4.3)
# magrittr 2.0.4 2025-09-12 [1] CRAN (R 4.4.1)
# officer 0.7.3 2026-01-16 [1] CRAN (R 4.4.3)
# openssl 2.3.5 2026-02-26 [1] CRAN (R 4.4.3)
# otel 0.2.0 2025-08-29 [1] CRAN (R 4.4.1)
# parallelly 1.46.1 2026-01-08 [1] CRAN (R 4.4.3)
# patchwork 1.3.2 2025-08-25 [1] CRAN (R 4.4.1)
# pillar 1.11.1 2025-09-17 [1] CRAN (R 4.4.1)
# pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.4.1)
# proxy 0.4-29 2025-12-29 [1] CRAN (R 4.4.3)
# purrr 1.2.1 2026-01-09 [1] CRAN (R 4.4.3)
# R6 2.6.1 2025-02-15 [1] CRAN (R 4.4.1)
# ragg 1.5.1 2026-03-06 [1] CRAN (R 4.4.3)
# RColorBrewer 1.1-3 2022-04-03 [1] CRAN (R 4.4.1)
# Rcpp 1.1.1 2026-01-10 [1] CRAN (R 4.4.3)
# rlang 1.1.7 2026-01-09 [1] CRAN (R 4.4.3)
# rmarkdown 2.30 2025-09-28 [1] CRAN (R 4.4.1)
# rsample 1.3.2 2026-01-30 [1] CRAN (R 4.4.3)
# S7 0.2.1 2025-11-14 [1] CRAN (R 4.4.3)
# scales 1.4.0 2025-04-24 [1] CRAN (R 4.4.1)
# sessioninfo 1.2.3 2025-02-05 [1] CRAN (R 4.4.1)
# systemfonts 1.3.2 2026-03-05 [1] CRAN (R 4.4.3)
# textshaping 1.0.5 2026-03-06 [1] CRAN (R 4.4.3)
# tibble 3.3.1 2026-01-11 [1] CRAN (R 4.4.3)
# tidyr 1.3.2 2025-12-19 [1] CRAN (R 4.4.3)
# tidyselect 1.2.1 2024-03-11 [1] CRAN (R 4.4.0)
# truncnorm 1.0-9 2023-03-20 [1] CRAN (R 4.4.1)
# uuid 1.2-2 2026-01-23 [1] CRAN (R 4.4.3)
# vctrs 0.7.2 2026-03-21 [1] CRAN (R 4.4.3)
# withr 3.0.2 2024-10-28 [1] CRAN (R 4.4.1)
# xfun 0.57 2026-03-20 [1] CRAN (R 4.4.3)
# xml2 1.5.2 2026-01-17 [1] CRAN (R 4.4.3)
# yaml 2.3.12 2025-12-10 [1] CRAN (R 4.4.3)
# zip 2.3.3 2025-05-13 [1] CRAN (R 4.4.1)
#
# [1] /Users/seamus/Library/R/arm64/4.4/library
# [2] /opt/local/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library
#
# ──────────────────────────────────────────────────────────────────────────────