R/generateEllipsisSubstitutionName.R

Defines functions generateEllipsisSubstitutionName

generateEllipsisSubstitutionName <- function(argumentNames_s) {
  el <- getEllipsisSubstitutionName()
  verifyNoMatch <- function(elvalue_s_1) {
    b <- sapply(argumentNames_s, startsWith, elvalue_s_1)
    all(!b)
  }

  if (verifyNoMatch(el)) return(el)

  while (TRUE) {
    el <- paste0(el, sample(LETTERS, 1))
    if (verifyNoMatch(el)) return(el)
  }

}

Try the wyz.code.metaTesting package in your browser

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

wyz.code.metaTesting documentation built on Sept. 25, 2023, 9:06 a.m.