RL | R Documentation |
Not for final package distribution: this is a kludge to avoid having to rebuild the whole package just to propagate a change in a single function.
RL(f, path = NULL, package = NULL)
f |
unquoted name of function |
path: |
path to source file containing new definition for |
package: |
name of package to which |
Here's what RL(f)
does:
the file path
is sourced into
an empty environment E
for each symbol S
in E
:
if S
is a function, set its binding environment to namespace:PACKAGE
unlock the binding for S
in namespace:PACKAGE
bind S
to E$S
in namespace:PACKAGE
lock the binding for S
in namespace:PACKAGE
if S
is bound in package:PACKAGE
:
unlock the binding for S
in package:PACKAGE
bind S
to E$S
in package:PACKAGE
lock the binding for S
in package:PACKAGE
where PACKAGE
stands for the value of package
.
John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.