This is somewhat fixed now in R-patched and R-devel, as of revision
54235. It won't die with an error, but it still might not be perfect.
The problem is that the line
#line 516 VolStocksDec2010.Rnw
is taken as a statement by you that the next few lines are copied from
line 516 and following
hi
I am seeing a strange behavior I can't understand... doing:
source(/tmp/RFile.r,echo=TRUE)
Error in rep.int(c(prompt.echo, continue.echo), c(leading, length(dep) - :
invalid 'times' value
traceback()
3: rep.int(c(prompt.echo, continue.echo), c(leading, length(dep) -
leading))
2:
On Mon, Jan 24, 2011 at 12:07 PM, Matthieu Stigler
matthieu.stig...@gmail.com wrote:
hi
I am seeing a strange behavior I can't understand... doing:
source(/tmp/RFile.r,echo=TRUE)
Error in rep.int(c(prompt.echo, continue.echo), c(leading, length(dep) - :
invalid 'times' value
traceback()
Le 24. 01. 11 18:22, Gabor Grothendieck a écrit :
On Mon, Jan 24, 2011 at 12:07 PM, Matthieu Stigler
matthieu.stig...@gmail.com wrote:
hi
I am seeing a strange behavior I can't understand... doing:
source(/tmp/RFile.r,echo=TRUE)
Error in rep.int(c(prompt.echo, continue.echo), c(leading,
It sounds like you have some invalid expressions. Dump out the values
of 'leading' and 'length(dep) - leading'. Learn some simple debugging
techniques. One is to set
options(error=utils::recover)
so that on the error you can use the browser to examine what the values are.
On Mon, Jan 24,
ok, thanks Jim
The problem comes from length(dep)leading, so we get negative number...
length(dep)
[1] 183
c(leading, length(dep) - leading)
[1] 516 -333
But 183 seems to be the right number:
$ wc -l /tmp/RFile.r
183 /tmp/RFile.r
So now need to understand what is this dep, and why it has a
On Mon, Jan 24, 2011 at 12:29 PM, Matthieu Stigler
matthieu.stig...@gmail.com wrote:
Le 24. 01. 11 18:22, Gabor Grothendieck a écrit :
On Mon, Jan 24, 2011 at 12:07 PM, Matthieu Stigler
matthieu.stig...@gmail.com wrote:
hi
I am seeing a strange behavior I can't understand... doing:
Do 'str(dep)' to see what dep is and where it comes from. If you have
the 'options' set as I suggested, you can do this examination when the
error occurs.
On Mon, Jan 24, 2011 at 12:41 PM, Matthieu Stigler
matthieu.stig...@gmail.com wrote:
ok, thanks Jim
The problem comes from
: Monday, January 24, 2011 10:19 AM
To: Matthieu Stigler
Cc: r-help@r-project.org
Subject: Re: [R] error with source(): invalid 'times' value
Do 'str(dep)' to see what dep is and where it comes from. If you have
the 'options' set as I suggested, you can do this examination when the
error occurs
On 11-01-24 12:07 PM, Matthieu Stigler wrote:
hi
I am seeing a strange behavior I can't understand... doing:
source(/tmp/RFile.r,echo=TRUE)
Error in rep.int(c(prompt.echo, continue.echo), c(leading, length(dep) - :
invalid 'times' value
traceback()
3: rep.int(c(prompt.echo,
Hi
Well this is the output of str(dep) on a small example:
str(dep)
chr [1:8] ### ...
Browse[1] dep
[1] ###
[2] ### chunk number 1:
[3] ###
[4] #line
tibco.com
-Original Message-
From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org] On Behalf Of jim holtman
Sent: Monday, January 24, 2011 10:19 AM
To: Matthieu Stigler
Cc: r-help@r-project.org
Subject: Re: [R] error with source(): invalid 'times' value
Do 'str(dep
Le 24. 01. 11 20:43, Duncan Murdoch a écrit :
On 11-01-24 12:07 PM, Matthieu Stigler wrote:
hi
I am seeing a strange behavior I can't understand... doing:
source(/tmp/RFile.r,echo=TRUE)
Error in rep.int(c(prompt.echo, continue.echo), c(leading,
length(dep) - :
invalid 'times' value
-Original Message-
From: mat [mailto:matthieu.stig...@gmail.com]
Sent: Monday, January 24, 2011 2:09 PM
To: William Dunlap
Cc: jim holtman; r-help@r-project.org; murdoch.dun...@gmail.com
Subject: Re: [R] error with source(): invalid 'times' value
indeed this makes the trick
On 11-01-24 5:09 PM, mat wrote:
Le 24. 01. 11 20:43, Duncan Murdoch a écrit :
On 11-01-24 12:07 PM, Matthieu Stigler wrote:
hi
I am seeing a strange behavior I can't understand... doing:
source(/tmp/RFile.r,echo=TRUE)
Error in rep.int(c(prompt.echo, continue.echo), c(leading,
length(dep)
15 matches
Mail list logo