Skip to content
Prev 31237 / 398506 Next

Problme with <<- (was Apparent namespace problem)

On Fri, 25 Apr 2003, Ross Boylan wrote:

            
`namespace' is a technical term in R (some packages have namespaces), and
not I think involved here. I think you meant `scoping issues', although
the exact issue seems to be an inappropriate use of <<-.
?find.
If that is the intention, please use assign() explicitly.  That is not
what <<- is intended to do in R and it probably should only be used to
change an already existing value somewhere in the environment tree.

assign("gcv", g, envir=NULL), I believe

[...]

I have ignored the `snow' aspect, as I don't understand enough of how you 
are using it: it might be relevant.