Hi, is there a platform independent way to log a complete R session (input + output + warnings + errors + ???) into a text file? I can use sink(file, split=T) and savehistory() but it is quite cumbersome to merge the files and still there is some loss (eg. warnings). I wondered that I only found this thread from 2003(!) related to this topic: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/13971.html however I am using R on MS Windows - no |tee, no ESS... Petr -- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic
ESS is the answer for Windows. NT emacs is available at ftp://ftp.gnu.org/pub/gnu/emacs/windows download emacs-21.3-fullbin-i386.tar.gz ESS is available at http://ess.r-project.org Click source and then right-click ess-5.3.3.zip
Unfortunately, it is not. I am aware of Win Emacs, but it is not at all easy, sometimes almost impossible to convince the admin(s) to install software. I was looking (in the best case) for some R-built-in routine to do this. Petr Richard M. Heiberger napsal(a):> ESS is the answer for Windows. > > NT emacs is available at > ftp://ftp.gnu.org/pub/gnu/emacs/windows > download emacs-21.3-fullbin-i386.tar.gz > > ESS is available at > http://ess.r-project.org > Click source and then right-click ess-5.3.3.zip > >-- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic
emacs _installation_ does not require Windows Administrator privileges. emacs can run from a CD, or USB, or a user area. It is possible that your IT department enforces a "policy" by which the emacs.exe won't _run_ if it's name is not on the policy list. In that case, from the R Console, click on "Edit/GUI prefrerences..." and set the "buffer bytes" and "lines" to very big numbers. Then you can use the mouse in the R Console to right-click select-all, and then copy and paste to some editor. You can also use the menu and click "File/Save to File...".