Setting defaults via, for example setDefaults(getSymbols.tiingo, api.key = "yourKey") doesn't work if quantmod isn't loaded. This can happen if a user calls setDefaults() in a startup file like .Rprofile.
Allow users to set defaults via options() and have setDefaults() refer to the options() value.
Setting defaults via, for example
setDefaults(getSymbols.tiingo, api.key = "yourKey")
doesn't work if quantmod isn't loaded. This can happen if a user callssetDefaults()
in a startup file like.Rprofile
.Allow users to set defaults via
options()
and havesetDefaults()
refer to theoptions()
value.