View source: R/shouldShowOripTab.R
| shouldShowOripTab | R Documentation |
Determines whether the Oregon (ONPRC)-specific ORIP Reporting tab should be
shown in the application navigation. ORIP (Office of Research Infrastructure
Programs) grant reporting is specific to ONPRC, so the tab is shown only when
an actual site configuration file is present and it identifies the
colony as ONPRC. The getSiteInfo default fallback
(center = "ONPRC" when no configuration file exists) does NOT show the
tab.
shouldShowOripTab(center, hasConfigFile)
center |
Character scalar naming the colony center, as returned by
|
hasConfigFile |
Logical scalar indicating whether an actual site
configuration file is present (e.g.
|
Logical. TRUE if a real ONPRC configuration is active and the tab should be shown, FALSE otherwise.
getSiteInfo for the site configuration source and
shouldShowChangedColsTab for the sibling tab-visibility
predicate.
library(nprcgenekeepr)
shouldShowOripTab("ONPRC", TRUE) # TRUE
shouldShowOripTab("SNPRC", TRUE) # FALSE
shouldShowOripTab("ONPRC", FALSE) # FALSE (default fallback, no config file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.