R/storeChosenName.R

Defines functions storeChosenName

Documented in storeChosenName

#' Store chosen name in memory
#'
#' When all else passes, store this particular name in memory
#'
#' @param name The chosen name to store
#'
#' @return store the chosen name in storage variable
#'
#' @examples
#' nameStore <- 'ObiStore1'
#' storeChosenName(nameStore)
#'
#' @export
#'

storeChosenName <- function(name) {
  if (is.null(options()$.funCNames)) options(".funCNames" = c())
  fetchFuncNames <- c(options()$.funCNames, name)
  options(".funCNames" = fetchFuncNames)
}

Try the r2shortcode package in your browser

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

r2shortcode documentation built on July 2, 2020, 4:15 a.m.