Grokbase Groups R r-devel March 2011
FAQ
The pattern (I can make a simple example if needed):
source("x.R")
options(error=recover)
x <- ...
f(x) # f() from x.R
(subscript bounds error, now in recover())
Selection: 1
Browse[1]> where

In the output from "where," there should be information on the line
number at which the user code blew up. It's there in 2.12, but not in
2.13, from what I can see.

Norm Matloff

Search Discussions

  • Duncan Murdoch at Mar 27, 2011 at 11:42 am

    On 11-03-26 7:41 PM, Norm Matloff wrote:

    The pattern (I can make a simple example if needed):
    source("x.R")
    options(error=recover)
    x<- ...
    f(x) # f() from x.R
    (subscript bounds error, now in recover())
    Selection: 1
    Browse[1]> where

    In the output from "where," there should be information on the line
    number at which the user code blew up. It's there in 2.12, but not in
    2.13, from what I can see.
    That's not intentional. I'll see what went wrong...

    Duncan Murdoch
  • Duncan Murdoch at Mar 27, 2011 at 12:57 pm

    On 11-03-27 7:42 AM, Duncan Murdoch wrote:
    On 11-03-26 7:41 PM, Norm Matloff wrote:


    The pattern (I can make a simple example if needed):
    source("x.R")
    options(error=recover)
    x<- ...
    f(x) # f() from x.R
    (subscript bounds error, now in recover())
    Selection: 1
    Browse[1]> where

    In the output from "where," there should be information on the line
    number at which the user code blew up. It's there in 2.12, but not in
    2.13, from what I can see.
    That's not intentional. I'll see what went wrong...

    Duncan Murdoch
    Fixed now. Because of the internal change to srcref records

    \item \code{"srcref"} attributes now include two additional
    line number values, recording the line numbers in the order they
    were parsed.

    the code that saved the current location didn't recognize the record,
    and skipped saving it.

    Duncan Murdoch
  • Norm Matloff at Mar 27, 2011 at 4:42 pm
    Thanks very much, Duncan.

    Norm
    On Sun, Mar 27, 2011 at 08:57:08AM -0400, Duncan Murdoch wrote:

    Fixed now. Because of the internal change to srcref records

    \item \code{"srcref"} attributes now include two additional
    line number values, recording the line numbers in the order they
    were parsed.

    the code that saved the current location didn't recognize the record,
    and skipped saving it.

    Duncan Murdoch

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupr-devel @
categoriesr
postedMar 26, '11 at 11:41p
activeMar 27, '11 at 4:42p
posts4
users2
websiter-project.org
irc#r

2 users in discussion

Duncan Murdoch: 2 posts Norm Matloff: 2 posts

People

Translate

site design / logo © 2022 Grokbase