View source: R/modPotentialParents.R
| modPotentialParentsServer | R Documentation |
Server logic for the Potential Parents module. On button press, it calls
getPotentialParents against the current pedigree, flattens the
result into a sortable table, and exposes it for CSV download. The surface
degrades gracefully when no pedigree is loaded, when the pedigree lacks the
fromCenter colony-origin field, or when no in-colony animal has an
unknown parent.
modPotentialParentsServer(
id,
pedigree = NULL,
minSireAge = NULL,
minDamAge = NULL,
gestationTable = NULL,
gestationDefault = NULL
)
id |
character vector of length 1. Module namespace identifier. |
pedigree |
reactive returning the current pedigree data.frame. |
minSireAge |
minimum age in years for a male to be proposed as a sire.
May be a plain numeric, |
minDamAge |
minimum age in years for a female to be proposed as a dam.
Same forms and default as |
gestationTable |
optional species-to-gestation lookup passed to
|
gestationDefault |
optional integer fallback (days) for a pedigree whose
species is absent from |
A list of reactive expressions:
potentialParents - the raw getPotentialParents result
(or NULL).
tableData - the flattened results data.frame.
gestationDefault - the species-keyed default gestation window
(days) used to prefill the maximum-gestational-period input.
modPotentialParentsUI for the user interface.
getPotentialParents for the underlying computation.
Other Shiny modules:
modBreedingGroupsServer(),
modBreedingGroupsUI(),
modGeneticDiversityServer(),
modGeneticDiversityUI(),
modGeneticValueServer(),
modGeneticValueUI(),
modGvAndBgDescServer(),
modGvAndBgDescUI(),
modInputServer(),
modInputUI(),
modORIPReportingServer(),
modORIPReportingUI(),
modPedigreeServer(),
modPedigreeUI(),
modPotentialParentsUI(),
modPyramidServer(),
modPyramidUI(),
modSummaryStatsServer(),
modSummaryStatsUI()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.