joshuaulrich / quantmod

Quantitative Financial Modelling Framework
http://www.quantmod.com/
GNU General Public License v3.0
798 stars 219 forks source link

Allow users to set defaults via options() #361

Open joshuaulrich opened 2 years ago

joshuaulrich commented 2 years ago

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.