inst/templates/BuildingBlocks/methods_Check.R

  # Allowed methods for this function
  allowedmethods <- c("XXXXX", "YYYYY", "ZZZZZ")

  if(!(method %in% allowedmethods)){
    stop("Method needs to be one of the following: 'XXXXX', 'YYYYY', 'ZZZZZ'.", call.=FALSE)
  }
FlorianSchw/DSFunctionCreator documentation built on Sept. 27, 2024, 2:51 p.m.