Displaying 2 results from an estimated 2 matches for "foo_internal".
Did you mean:
foo_internals
2011 Aug 12
1
Can the environment of a function be specified when the function is defined?
Hello,
Is there a syntax to set the environment of a function when this function is
defined?
The best I could come up with so far is using a wrapper function:
foo_internals<- function(x) {"Code of the function"}
foo<- function(x) {
environment(foo_internals)<-as.environment(target_environment)
foo_internals(x)
}
But I would like to know if there is a cleaner syntax.
There are two reasons why I would like to have a function defined with an
en...
2005 Jul 30
4
How to hiding code for a package
Hey everyone,
I have made a package and wish to release it but
before then I have a problem. I have a few functions
in this package written in R that I wish to hide such
that after installation, someone can use say the
function >foo(parameters = "") but cannot do >foo.
Typing foo should not show the source code or at least
not all of it. Is there a way to do this ? I have
searched