You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation says in setDefaults(name...), name = name of function, quoted or unquoted. For getQuote.av only the quoted name works.
Expected behavior
both quoted or unquoted names to work
Minimal, reproducible example
setDefaults(getQuote.av, api.key='xxx')
# Error in setDefaults(getQuote.av, api.key = "xxx") : object 'getQuote.av' not found
setDefaults('quantmod:::getQuote.av', api.key='xxx')
# Error in get(fun, mode = "function", envir = envir) : object 'quantmod:::getQuote.av' of mode 'function' was not found
setDefaults('getQuote.av', api.key='xxx')
# works, huh
The text was updated successfully, but these errors were encountered:
setDefaults() was not able to find unexported functions (e.g.
getQuote.av()), so users could not set defaults for them.
The bulk of the changes are in setDefaults() in order to verify the
function exists, exported or not, and has a call to importDefaults().
Then we always capture the call in getDefaults() and unsetDefaults()
to avoid the possibility that the function is not exported. We do not
need to re-verify because the default options will only exist if
setDefaults() created them.
Fixes#316.
This took much longer than I expected (10-12 hours), but I finally got it working. Please give it a try and let me know if you run into any edge cases.
Description
Documentation says in setDefaults(name...), name = name of function, quoted or unquoted. For getQuote.av only the quoted name works.
Expected behavior
both quoted or unquoted names to work
Minimal, reproducible example
The text was updated successfully, but these errors were encountered: