Manish MAHESHWARI
2016-Jan-29 06:05 UTC
[R] Redirect Output to File and Screen in Parallel
Hi, Using the sink we can redirect the output to sink files set as con. However is there a way to do both - Have the Op printed on screen and also to the log file? Thanks, Manish CONFIDENTIAL NOTE: The information contained in this email is intended only...{{dropped:11}}
> On Jan 28, 2016, at 10:05 PM, Manish MAHESHWARI <manishm at dbs.com> wrote: > > Hi, > > Using the sink we can redirect the output to sink files set as con. > However is there a way to do both - Have the Op printed on screen and also to the log file?I think this has been asked and answered. Have you done any searching?> > Thanks, > Manish > CONFIDENTIAL NOTE: > The information contained in this email is intended only...{{dropped:11}} > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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.David Winsemius Alameda, CA, USA
I did do some searching, but haven't been able to find an answer up to this point. I'll continue looking in the question archives and let you know if I find an answer. Thanks, David On Thu, Jan 28, 2016 at 11:42 PM, David Winsemius <dwinsemius at comcast.net> wrote:> > > On Jan 28, 2016, at 10:05 PM, Manish MAHESHWARI <manishm at dbs.com> wrote: > > > > Hi, > > > > Using the sink we can redirect the output to sink files set as con. > > However is there a way to do both - Have the Op printed on screen and > also to the log file? > > I think this has been asked and answered. Have you done any searching? > > > > > Thanks, > > Manish > > CONFIDENTIAL NOTE: > > The information contained in this email is intended only...{{dropped:11}} > > > > ______________________________________________ > > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > > 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. > > David Winsemius > Alameda, CA, USA > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. >[[alternative HTML version deleted]]
Manish MAHESHWARI
2016-Jan-29 08:10 UTC
[R] Redirect Output to File and Screen in Parallel
Hi David, I did search SO and R-Help Archive. But I haven't got the parallel option. It either prints on screen or logs to the file. Thanks, Manish -----Original Message----- From: David Winsemius [mailto:dwinsemius at comcast.net] Sent: Friday, January 29, 2016 3:43 PM To: Manish MAHESHWARI Cc: r-help at r-project.org Subject: Re: [R] Redirect Output to File and Screen in Parallel> On Jan 28, 2016, at 10:05 PM, Manish MAHESHWARI <manishm at dbs.com> wrote: > > Hi, > > Using the sink we can redirect the output to sink files set as con. > However is there a way to do both - Have the Op printed on screen and also to the log file?I think this has been asked and answered. Have you done any searching?> > Thanks, > Manish > CONFIDENTIAL NOTE: > The information contained in this email is intended > only...{{dropped:11}} > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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.David Winsemius Alameda, CA, USA CONFIDENTIAL NOTE: The information contained in this email is intended only...{{dropped:8}}
?sink use the split = TRUE should do the trick On Fri, 29 Jan 2016 at 08:44 David Winsemius <dwinsemius at comcast.net> wrote:> > > On Jan 28, 2016, at 10:05 PM, Manish MAHESHWARI <manishm at dbs.com> wrote: > > > > Hi, > > > > Using the sink we can redirect the output to sink files set as con. > > However is there a way to do both - Have the Op printed on screen and > also to the log file? > > I think this has been asked and answered. Have you done any searching? > > > > > Thanks, > > Manish > > CONFIDENTIAL NOTE: > > The information contained in this email is intended only...{{dropped:11}} > > > > ______________________________________________ > > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > > 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. > > David Winsemius > Alameda, CA, USA > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. >[[alternative HTML version deleted]]