Bug #749
TBX: Windows: Execute an R script doesn't work if the script contains more than one line
Statut: | Closed | Début: | 17/04/2014 | |
---|---|---|---|---|
Priorité: | Normal | Echéance: | ||
Assigné à: | - | % réalisé: | 100% |
|
Catégorie: | Stats / R | Temps passé: | - | |
Version cible: | 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]
Historique
#1 Mis à jour par Matthieu Decorde il y a plus de 11 ans
- Version cible changé de TXM 0.X.X à TXM 0.7.6
#2 Mis à jour par Matthieu Decorde il y a plus de 11 ans
- % réalisé changé de 0 à 80
fixed, but scripts but now explicitly call "print()" to show messages in the RConsole
#3 Mis à jour par Matthieu Decorde il y a plus de 11 ans
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 Mis à jour par Sebastien Jacquot il y a environ 11 ans
- Statut changé de New à Resolved
- % réalisé changé de 80 à 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 Mis à jour par Matthieu Decorde il y a environ 11 ans
- % réalisé changé de 90 à 100
#6 Mis à jour par Matthieu Decorde il y a environ 11 ans
- Statut changé de Resolved à Closed