I actually got it to do what I want running my R routine through a batch file. 
It saves to a file everything on the console. Thanks for 
your suggestions.

Felipe D. Carrillo
Supervisory Fishery Biologist
Department of the Interior
US Fish & Wildlife Service
California, USA
http://www.fws.gov/redbluff/rbdd_jsmp.aspx



>________________________________
>From: Vivek Singh <vksingh.ii...@gmail.com>
>To: David Winsemius <dwinsem...@comcast.net> 
>Cc: Felipe Carrillo <mazatlanmex...@yahoo.com>; r-help help 
><r-h...@stat.math.ethz.ch> 
>Sent: Sunday, December 16, 2012 11:35 PM
>Subject: Re: [R] save to file
>
>
>try the following. it works for linux:
>
>$ R|tee log.txt
>
>I stored the log for a small period.
>
>R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows"
>Copyright (C) 2012 The R Foundation for Statistical Computing
>ISBN 3-900051-07-0
>Platform: x86_64-pc-linux-gnu (64-bit)
>
>R is free software and comes with ABSOLUTELY NO WARRANTY.
>You are welcome to redistribute it under certain conditions.
>Type 'license()' or 'licence()' for distribution details.
>
>  Natural language support but running in an English locale
>
>R is a collaborative project with many contributors.
>Type 'contributors()' for more information and
>'citation()' on how to cite R or R packages in publications.
>
>Type 'demo()' for some demos, 'help()' for on-line help, or
>'help.start()' for an HTML browser interface to help.
>Type 'q()' to quit R.
>
>> q()
>Save workspace image? [y/n/c]: n
>
>
>
>On Mon, Dec 17, 2012 at 3:23 PM, David Winsemius <dwinsem...@comcast.net> 
>wrote:
>
>
>>On Dec 16, 2012, at 7:35 PM, Felipe Carrillo wrote:
>>
>>> Well, I am going to give copies of an application to different offices and 
>>> want to be able to generate an output file
>>> in the event that an error would ocurr while running the different R 
>>> routines. By saving the entire R console along with the
>>> R version, I should be able to see where the error ocurred. I've seen text 
>>> files with every single text from the R console but can't find
>>> the way to capture that.
>>
>>Most consoles will accept cmd-A or similar to select all text in a console 
>>session. Figure out what that keystroke combo is for your OS and then ctl- or 
>>cmd-C and paste into text editor.
>>
>>--
>>David Winsemius
>>Alameda, CA, USA
>>
>>
>>______________________________________________
>>R-help@r-project.org 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.
>>
>
>
>-- 
>
>Thanks and Regards,
>
>Vivek Kumar Singh
>
>Alcatel-Lucent,
>Bangalore
>
>(91)9886317184, 8123951698
>
>
>
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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