Use local or codetools package as in:

http://finzi.psych.upenn.edu/R/Rhelp02a/archive/69694.html
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/69695.html


On 4/12/06, James Kirkby <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I was wondering if there is a way to stop R looking outside the scope of
> a function, if it can't find the variable inside the function.
>
> I seem to waste hours debugging functions only to find I've used a wrong
> variable name somewhere, but the function still works because the
> variable exists higher up the hierachy. It seems it would be easier to
> debug if the function just went splat when it couldn't find the variable.
>
> Thanks
>
> James
>
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to