doc: Document .RData handoff points in core workflow functions#3885
doc: Document .RData handoff points in core workflow functions#3885S1DDHEY wants to merge 7 commits intoPecanProject:developfrom
.RData handoff points in core workflow functions#3885Conversation
|
The current CI check fails because of multiple |
|
@S1DDHEY Looks like declaring Adopting Markdown across all our Roxygen docs is a worthy but low-priority goal, so if you're up for reviewing all the changes and confirming the changes are desirable / editing as needed, go for it. If you'd rather not take that on in this PR, you can take markdown = TRUE out of DESCRIPTION and instead opt in the pages you edited by including |
|
@infotroph Thank you for the clarification, for this PR I'd just revert the DESCRIPTION file changes and will proceed by adding the |
7838ba0 to
ad9e897
Compare
.RData handoff points in core workflow functions.RData handoff points in core workflow functions
|
@mdietze let me know if any changes are needed for this one, I'll add the |
base/db/R/get.trait.data.pft.R
Outdated
| ##' @details | ||
| ##' `pft` should be a list containing at least `name` and `outdir`, and | ||
| ##' optionally `posteriorid` and `constants`. | ||
| ##' **BEWARE:** All existing files in `pft$outdir` will be deleted on entry. |
There was a problem hiding this comment.
Rather than giving a warning about this, which I don't think represents the desired behavior, why don't we just fix it?
There was a problem hiding this comment.
done, removed this part
pecan/base/db/R/get.trait.data.pft.R
Lines 30 to 32 in ae934e8
base/db/R/get.trait.data.pft.R
Outdated
| ##' @return The `pft` input list, updated with `pft$posteriorid` set to the | ||
| ##' ID of the (possibly new) posterior record in BETYdb. Note: the function's | ||
| ##' primary outputs (`trait.data`, `prior.distns`) are currently communicated | ||
| ##' only through files saved in `pft$outdir`, not through the return value. |
There was a problem hiding this comment.
I'm not sure this is true. Doesn't the posterior id point you to the right folder if you query BETY?
There was a problem hiding this comment.
The posteriorid in the return value does serve as an indirect path to the output files via BETY's dbfiles table (e.g.
pecan/base/db/R/get.trait.data.pft.R
Lines 101 to 102 in ae934e8
@return
d41218b to
2f3af16
Compare
Description
This draft PR adds documentation for
.RDatahandoff points in core PEcAn workflow functions. It focuses on improving@returnand@detailssections to clarify what objects are written to disk and how they are used by downstream steps.This work is part 1 of my pre-GSoC prep for the modularity project.
Motivation and Context
Review Time Estimate
Types of changes
Checklist: