On Wednesday, 8 June 2016 14:15:57 UTC-6, Tom Judson wrote:
>
> If I go to https://sagecell.sagemath.org and use the pull down menu on 
> the right to set the language to R, everything works.  If I try %r, then I 
> don't get the desired output.
>

Exactly. There is some wrapper which is applied to the whole cell if it is 
in R mode and you can change the default mode if you need it to be R. In 
this case it may actually work better than in the cloud ;-)
Some details were discussed here: 
https://groups.google.com/forum/#!msg/sage-support/NUIxQcMJLjk/gy3TlOObAgAJ


> On Tuesday, June 7, 2016 at 3:36:22 PM UTC-5, Tom Judson wrote:
>>
>> Does anyone have any experience using R in a Sage cell?  The following 
>> code works fine on SMC but not on the Sage cell server. 
>>
>>             %r 
>>             age <- c(25, 30, 56) 
>>             gender <- c("male", "female", "male") 
>>             weight <- c(160, 110, 220) 
>>             mydata <- data.frame(age,gender,weight) 
>>             summary(mydata) 
>>             cor(mydata$age,mydata$weight) 
>>             mean(mydata$age) 
>>             sd(mydata$age) 
>>             plot(mydata$age,mydata$weight)]]> 
>>
>> Tom Judson
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to