I get "normal" error detection.

In a worksheet (in 'r' mode) :

bar<-function(x) {
    y<-x+3)
    return(y)
}

gives :

Erreur : ')' inattendu(e) in:
"bar<-function(x) {
    y<-x+3)"
Erreur : objet 'y' introuvable
Erreur : '}' inattendu(e) in "}"


In a terminal :

charpent@asus16-ec:~$ sage -R

R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-unknown-linux-gnu (64-bit)

R est un logiciel libre livré sans AUCUNE GARANTIE.
Vous pouvez le redistribuer sous certaines conditions.
Tapez 'license()' ou 'licence()' pour plus de détails.

R est un projet collaboratif avec de nombreux contributeurs.
Tapez 'contributors()' pour plus d'information et
'citation()' pour la façon de le citer dans les publications.

Tapez 'demo()' pour des démonstrations, 'help()' pour l'aide
en ligne ou 'help.start()' pour obtenir l'aide au format HTML.
Tapez 'q()' pour quitter R.

[Sauvegarde de la session précédente restaurée]

> bar<-function (x) {
+ y<-x+3)
Erreur : ')' inattendu(e) in:
"bar<-function (x) {
y<-x+3)"
> 

As William said, an example is necessary...

HTH,
--
Emmanuel Charpentier
Le vendredi 21 février 2014 17:18:59 UTC+1, Fred Gruber a écrit :
>
> Hi
> I have noticed that when I'm in R mode and when define R functions 
> sometimes sage doesn't display errors if there are any. It just doesn't 
> define the function.
>
> Has anyone else noticed this? Is there anything I can do to get sage to 
> display the errors. It is hard to debug code when sage doesn't tell you 
> where is the problem.
>
> thanks
> F
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to