View source: R/attachSymbols.R
create.binding | R Documentation |
Internal function used in attachSymbols
to create active bindings for symbols defined in a DDB
object.
create.binding(s,
lsym,
rsym,
gsrc,
mem.cache = TRUE,
file.cache = !mem.cache,
cache.dir = tempdir(),
envir,...)
s |
symbol name |
lsym |
function to convert to local name (legal R name) |
rsym |
function to convert to remote name (source name) |
gsrc |
corresponds to 'src' arg in getSymbols call |
mem.cache |
cache to memory |
file.cache |
cache to disk |
cache.dir |
directory to cache to/from |
envir |
environment name (character) |
... |
arguments to pass to getSymbols call |
Low level function to create bindings during initial demand-database construction.
Called for its side effect of creating active bindings to symbols.
This is code used internally by attachSymbols. User's may modify this to accomodate different systems. The upstream functions needn't maintain consistency with this interface.
Use as a guide or template.
Jeffrey A. Ryan
Mark, Roger, ?
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.