as.name(x) is.name(x)
is.name tests whether x is a name object. That is, it returns TRUE if x is a name and FALSE otherwise.
mode(eval(as.name("ls"))) # returns "function"