Bug #749

TBX: Windows: Execute an R script doesn't work if the script contains more than one line

Added by Sebastien Jacquot over 5 years ago. Updated almost 5 years ago.

Status:Closed Start date:04/17/2014
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:Stats / R Spent time: -
Target version:TXM 0.7.6

Description

Steps to reproduce on Windows:
- switch to R perspective
- create a new session
- type or paste these 2 lines in the .R file :

plot(1:10,1:10,type="n")
text(5,5,"test")

- click on "Execute Script"
- evaluation fails with message:

  • Evaluation Error: eval failed, request status: R parser: syntax error : plot(1:10,1:10,type="n")
    text(5,5,"trtrtr")

[At many places in source code we can found "\n", we may use "System.getProperty("line.separator")" which returns the right carriage return and line feed according to the runtime platform. This bug may be related to this "\n" usage]

History

#1 Updated by Matthieu Decorde over 5 years ago

  • Target version changed from TXM X.X to TXM 0.7.6

#2 Updated by Matthieu Decorde over 5 years ago

  • % Done changed from 0 to 80

fixed, but scripts but now explicitly call "print()" to show messages in the RConsole

#3 Updated by Matthieu Decorde about 5 years ago

Les listes R ne s'affichaient pas bien dans la console R. J'ai donc branché directement le flux stdout de Rserve dans la console R

#4 Updated by Sebastien Jacquot about 5 years ago

  • Status changed from New to Resolved
  • % Done changed from 80 to 90

Test OK. Multi-line code is well executed on Win 7 and list viewing works.
NOTE: effectively, we need to use print(), using only a variable name does nothing.

#5 Updated by Matthieu Decorde almost 5 years ago

  • % Done changed from 90 to 100

#6 Updated by Matthieu Decorde almost 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF