library
, require
, example
and maybe a few other functions could used with and without quotes:
example(runif)
example("runif")
To allow the unquoted version these functions convert the first argument into a character (without evaluating it) by calling:
deparse(subsitute(x))
resulting in:
deparse(substitute(ls("package:LIM")[1]))
# [1] "ls(\"package:LIM\")[1]"
To circumvent this (to evaluate the argument) you have to use the character.only
argument.
example(ls("package:LIM")[1], character.only=TRUE)
IMHO this behaviour isn't very consistent (character.only=TRUE
should be the default) and I can't see any advantages (ok, you can use tab-completion in the unquoted version).