search for: helper1

Displaying 1 result from an estimated 1 matches for "helper1".

Did you mean: helper
2004 Mar 27
3
a question about scoping functions
Hi, I've written some helper functions which are used by another function (called func()). When func() is sourced I dont want the helper function to be seen in the global namespace (as shown by ls()). Currently what I have done is: func <- function() { helper1 <- function() { ... } helper2 <- function() { ... } # some code } Is there anyway to take the functions helper1 and helper2 outside func (but in the same file) yet keep them from showing up in the global namespace when the source file for func() is loaded? A related question...