R/imgs.R

Defines functions nomenclat designOverview renderPNG

Documented in designOverview nomenclat

renderPNG = function(fi) {
  if (!requireNamespace("png")) stop("install png to run this function")
  if (!requireNamespace("grid")) stop("install grid to run this function")
  p = png::readPNG(system.file(paste0("pngs/", fi), package="ivygapSE"))
  grid::grid.raster(p)
}

#' render design overview
#' @rdname imgSupport
#' @aliases designOverview
#' @return a rastergrob grob
#' @examples
#' designOverview()
#' @export
designOverview = function()
  renderPNG("whiteSixStud.png")
#' render anatomic nomenclature
#' @rdname imgSupport
#' @aliases nomenclat
#' @export
nomenclat = function()
  renderPNG("anatomicNomenclature.png")

Try the ivygapSE package in your browser

Any scripts or data that you put into this service are public.

ivygapSE documentation built on Nov. 8, 2020, 8:08 p.m.