getSymbols
first looks to the local environment for
matching symbols. If found, the next symbol in Symbols
is attempted, if not found, it is skipped and a warning will
be displayed. Upon completion a list of
loaded symbols is stored in the global environment
under the name .getSymbols
.Objects loaded by getSymbols
can be viewed with
showSymbols
and
removed by a call to removeSymbols
. Additional
retrieval methods can be
created simply following the S3-like naming
convention where getSymbols.NAME
is used for your function NAME. See getSymbols.skeleton
.
setDefaults(getSymbols)
can be used to
specify defaults for all passed getSymbols
arguments.
setDefaults(getSymbols.MySQL)
for arguments
specific to getSymbols.MySQL
, etc.
The sourcing of data is managed internally
through a complex lookup procedure. If symbol.lookup
is TRUE (the default), a check is made if any symbol
has had its source specified by setSymbolLookup
.
If not set, the process continues by checking to see if
src
has been specified by the user in the
function call. If not, any src
defined with
setDefaults(getSymbols,src=)
is used.
Finally, if none of the other source rules apply
the default getSymbols
src
method is
used (yahoo).