Go for the best and do it with ESS.

ESS understands the file extension myfile.rt (not myfile.txt, which is generic)
as an R transcript and therefore font-locks it for the R syntax and is able to 
resend
multiple-line statements with a single ENTER.

Within emacs, you can save the *R* buffer to a myfile.rt file (you can also
save the R transcript as myfile.rt running inside a *shell* buffer,
but that is silly at this point).

Plus you get syntax highlighting and the other features on your myfile.R file.

______________________________________________
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.

Reply via email to