claude.josse wrote: > But in my text window I have : > > x=2a=mean(c(1,2,3)) > > I d'like to have something like: > x=2 > a=mean(c(1,2,3))
AFAIK you need to separate lines with a newline character ('\n'). Put a 'tkinsert(txt, "end", "\n")' between the insert commands. Or append each line with '\n'. > > 2)My second problem, In function run: > print(eval(e)) Make the evaluation in the workspace environment: print(eval(e, envir=.GlobalEnv)) Then the results are available in R console. HTH -- Jarimatti Valkonen ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.