[rkward-tracker] [ rkward-Bugs-1698597 ] syntax error executing functions line by line

SourceForge.net noreply at sourceforge.net
Wed Apr 11 18:41:01 UTC 2007


Bugs item #1698597, was opened at 2007-04-11 18:24
Message generated for change (Comment added) made by tfry
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=459007&aid=1698597&group_id=50231

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: michel (b00l)
>Assigned to: Thomas Friedrichsmeier (tfry)
Summary: syntax error executing functions line by line

Initial Comment:
Using the "execute-current-line"-button, R throws a syntax error for all functions spanning more than 3 lines. Maybe a problem parsing newlines?

Examples: 

working:
test <- function() {
  return(rnorm(100))
}


syntax-error:
test <- function() {
  x <- rnorm(100)
  return(x)
}

----------------------------------------------------------------------

>Comment By: Thomas Friedrichsmeier (tfry)
Date: 2007-04-11 20:41

Message:
Logged In: YES 
user_id=300591
Originator: NO

Yes, a problem with newlines. Those would be omitted in the command that
actually gets run. Therefore, what gets actually sent to R in the example
is:

test <- function() {  x <- rnorm(100)  return(x)  }

which indeed is a syntax error.

Fixed in the development version. Too bad, 0.4.7 is already released with
the bug.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=459007&aid=1698597&group_id=50231




More information about the rkward-tracker mailing list