Hi,
I noticed quite bad random behaviour when passing strings as argument,
check this simple example attached below, when passing numbers all is
ok, but on strings it just works crazy, if there is some other way to
pass string to R interpreter, is there way to do this automatically?
On bottom there is %r example, that one works... any hints? This is
actually one of last thing to normally use R from sage, thanks to
r.png()/r.dev_off() even plotting would work, just there's no way to
setup axes description (leaving sage1, etc as description), image
title, etc... also setting colours is harder as it's done by names
usually...
cheers,
Andrzej.
sage: r.paste("test")
Error: object "sage1" not found
sage: r.paste(1)
[1] "1"
sage: r.paste(1,2,3)
[1] "1 2 3"
sage: r.paste("test")
[1] "3"
sage: r.paste(1, "test", 2)
[1] "1 3 2"
sage: r.paste("a")
[1] "2"
sage: r.paste(1, "test", 2)
[1] "1 2 2"
sage: %r
sage: paste(1, "test", 2)
[1] "1 test 2"
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---