R/checkget.R

checkget <-
function (object.name) 
{
    if (!is.character(object.name)) 
        stop("object.name is not a character")
    if (!exists(object.name)) 
        stop(paste("Object", object.name, "does not exist"))
    return(get(envir = .frame0, object.name))
}
Auburngrads/SMRD documentation built on Sept. 14, 2020, 2:21 a.m.