[R] differences in using source() or console

2007-12-06 Thread vito muggeo
Dear all, Is there *any* reason explaining what I describe below? I have the following line myfun(x) If I type them directly in R (or copy/past), it works.. However if I type in R 2.6.1 source(code.R) ##code.R includes the above line Error in inherits(x, data.frame) : object d not found

Re: [R] differences in using source() or console

2007-12-06 Thread Duncan Murdoch
On 12/6/2007 8:01 AM, vito muggeo wrote: Dear all, Is there *any* reason explaining what I describe below? Probably, but you're unlikely to get a correct explanation if you don't give us code to reproduce the problem. From the look of things, your real example is quite complex, which is