## 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='google')
#
#
# ## Method #2
# setDefaults(getSymbols,src='google')
# # OR
# setSymbolLookup(MSFT='google')
#
# getSymbols('MSFT')
#
# #########################################
# ## NOT RECOMMENDED!!!
# #########################################
# ## Method #3
# getSymbols.google('MSFT',verbose=TRUE,env=globalenv())
# ## End(Not run)
Run the code above in your browser using DataLab