@@ -186,17 +186,17 @@ check_consistent <- function(point, prior,
186186# ' #' Run Bayesian meta-analysis for a single PFT (file-based wrapper)
187187# '
188188# ' @md
189- # ' Thin wrapper around [meta_analysis_standalone()] that reads trait data and
189+ # ' Thin wrapper around \code{\link[PEcAn.MA]{meta_analysis_standalone}} that reads trait data and
190190# ' priors from disk, runs the meta-analysis, and saves results back to disk.
191191# ' Also registers result files in the BETYdb posteriors table.
192192# '
193193# ' @details
194194# ' **Upstream contract (reads from `pft$outdir`):**
195195# ' \describe{
196196# ' \item{`trait.data.Rdata`}{Named list of data frames produced by
197- # ' [ get.trait.data.pft()] . Loaded into `trait_env$trait.data`.}
197+ # ' \code{\link[PEcAn.DB]{ get.trait.data.pft}} . Loaded into `trait_env$trait.data`.}
198198# ' \item{`prior.distns.Rdata`}{Data frame of prior distributions produced by
199- # ' [ get.trait.data.pft()] . Loaded into `prior_env$prior.distns`.}
199+ # ' \code{\link[PEcAn.DB]{ get.trait.data.pft}} . Loaded into `prior_env$prior.distns`.}
200200# ' }
201201# '
202202# ' **File-based side effects (saved to `pft$outdir`):**
@@ -206,20 +206,20 @@ check_consistent <- function(point, prior,
206206# ' JAGS. Each element has columns `beta.o` (overall mean) and optionally
207207# ' `sd.o` (overall SD).}
208208# ' \item{`post.distns.MA.Rdata`}{Contains `post.distns`: a data frame with
209- # ' one row per trait and columns `distn`, `parama`, `paramb`, `n`
209+ # ' one row per trait and columns `distn`, `parama`, `paramb`, `n`}
210210# ' summarizing the fitted posterior distribution.}
211211# ' \item{`post.distns.Rdata`}{Symlink to `post.distns.MA.Rdata`.}
212212# ' \item{`jagged.data.Rdata`}{Contains `jagged.data`: a named list of data
213213# ' frames (one per trait) formatted for use in the JAGS meta-analysis
214- # ' model (see [jagify()] ).}
214+ # ' model (see \code{\link[PEcAn.MA]{jagify}} ).}
215215# ' }
216216# '
217217# ' **Downstream contract:** The files `trait.mcmc.Rdata` and
218- # ' `post.distns.Rdata` are expected by \link[PEcAn.uncertainty]{get.parameter.samples} (in
218+ # ' `post.distns.Rdata` are expected by \code{\ link[PEcAn.uncertainty]{get.parameter.samples} } (in
219219# ' `PEcAn.uncertainty`), which loads them to generate ensemble and sensitivity
220220# ' analysis samples.
221221# '
222- # ' **Note:** The core computation is performed by [meta_analysis_standalone()] ,
222+ # ' **Note:** The core computation is performed by \code{\link[PEcAn.MA]{meta_analysis_standalone}} ,
223223# ' which accepts and returns R objects directly — see its documentation for
224224# ' the pure-function interface.
225225# '
@@ -352,8 +352,8 @@ run.meta.analysis.pft <- function(pft, iterations, random = TRUE, threshold = 1.
352352# #' Run meta-analysis across all PFTs
353353# #'
354354# #' @md
355- # #' Iterates over a list of PFTs and runs [ run.meta.analysis.pft()] for each
356- # #' one. This is the main entry point called by [ runModule.run.meta.analysis()] .
355+ # #' Iterates over a list of PFTs and runs \code{\link[PEcAn.MA]{ run.meta.analysis.pft}} for each
356+ # #' one. This is the main entry point called by \code{\link[PEcAn.MA]{ runModule.run.meta.analysis}} .
357357# #'
358358# #' This will use the following items from settings:
359359# #' - `settings$pfts`
@@ -365,7 +365,7 @@ run.meta.analysis.pft <- function(pft, iterations, random = TRUE, threshold = 1.
365365# #' @param database database connection parameters
366366# #' @param update logical: Rerun the meta-analysis if result files already exist?
367367# #' @param threshold Gelman-Rubin convergence diagnostic, passed on to
368- # #' [ pecan.ma.summary()]
368+ # #' \code{\link{ pecan.ma.summary}}
369369# #' @inheritParams meta_analysis_standalone
370370# #' @inheritParams run.meta.analysis.pft
371371# #'
0 commit comments