[bug?] format.options_env()
tries to evaluate options even if unset
#14
Labels
Milestone
format.options_env()
tries to evaluate options even if unset
#14
I think the problem is with line
values <- as.list(x)
informat.options_env()
. The callas.list()
forces the evaluation of promises, which fails if the promise is an empty symbol (bquote()
) or references any non-existing symbol in the environment. Instead ofas.list()
, the function should loop through the individual elements and render the unevaluated expression (see?delayedAssign
for theeval(substitute(substitute(...)))
idiom, or simply take the specs defaults) and its evaluated value only if available. Otherwise, render<unset>
or the error message, but do not fail.The text was updated successfully, but these errors were encountered: