R/dereference-hash.R

Defines functions dereference_hash

Documented in dereference_hash

#' Dereference a hash code into a link and a number.
#'
#' @param hash The alphanumeric character string identifying the object.
#' @export
dereference_hash <- function(hash) {
  # This is just a stub
  # We need to implement a system for collecting hash codes that the
  # other label/URL they identify.
  if (hash == "jAOmME") list(URL="none yet", number="26.16")
  else list(URL="none yet", number = hash)
}
dtkaplan/Znotes documentation built on Sept. 4, 2022, 10:21 a.m.