R/topic_add.R

Defines functions topic_add

Documented in topic_add

#' @title Add your own topic to the existing topic list
#'
#' @description This function updates an existing character vector (defaults a vector called'topics')
#'
#' @param topic.new character.  New topic to add
#' @param topics.current character vector.  Existing vector of topics (defaults to a vector called "topics" )
#' @return nothing.  updates existing vector.
#' @export

topic_add <- function(topics.current, topic.new) {

  topics.current <- append(topics.current, topic.new)
  return(topics.current)
}
mleary/fika documentation built on March 29, 2020, 12:59 a.m.