temp/hasArg_example.R

tfun = function(x = 0){
  if(hasArg(name = 'x')) {
    print('found')
  } else{
    stop('you did not supply x')
  }
}
AlexanderFengler/addmtoolbox documentation built on May 5, 2019, 4:53 a.m.