## Not run:
# # All 3 getSymbols calls return the same
# # MSFT to the global environment
# # The last example is what NOT to do!
#
# ## Method #1
# getSymbols('MSFT',src='yahoo')
#
#
# ## Method #2
# setDefaults(getSymbols,src='yahoo')
# # OR
# setSymbolLookup(MSFT='yahoo')
#
# getSymbols('MSFT')
#
# #########################################
# ## NOT RECOMMENDED!!!
# #########################################
# ## Method #3
# getSymbols.yahoo('MSFT',env=globalenv())
# ## End(Not run)
Run the code above in your browser using DataLab