R/checkNames.R

Defines functions checkNames

Documented in checkNames

checkNames <- function( testNames, allNames ) {
   inAllNames   <- testNames %in% allNames
   if( !all( inAllNames ) ) {
      stop( "object(s) '",
         paste( testNames[ !inAllNames ], collapse = "', '" ),
         "' not found." )
   }
}

Try the miscTools package in your browser

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

miscTools documentation built on Dec. 9, 2019, 3 a.m.