R/isSymbol.R

isSymbol =
    # analogous to rstatic::is_symbol
    # Helper function
    # Version of this now also in indexWalkCode.
function(x, sym = character())
    is.name(x) && (length(sym) == 0 || as.character(x) %in% sym)
duncantl/CodeAnalysis documentation built on April 28, 2024, 6:01 p.m.