Skip to content
Prev 360843 / 398506 Next

Antwort: Re: Antwort: Re: Re: sink(): Cannot open file

Duncan,

thanks for the hint.

I have done it correctly in R fashion

## capture all the output to a file.
zz <- file("C:/Temp/all.Rout", open = "wt")
sink(zz)
sink(zz, type = "message")
try(log("a"))
## back to the console
sink(type = "message")
sink()
unlink("C:/Temp/all.Rout")

But the error persits.

Kind regards

Georg




Von:    Duncan Murdoch <murdoch.duncan at gmail.com>
An:     John Sorkin <jsorkin at grecc.umaryland.edu>, drjimlemon at gmail.com, 
G.Maubach at weinwolf.de, 
Kopie:  r-help at r-project.org
Datum:  10.05.2016 19:03
Betreff:        Re: [R] Antwort: Re: Re: sink(): Cannot open file
On 10/05/2016 11:15 AM, John Sorkin wrote:
sink() under windows, I need to specify a valid path which I don't see in 
your code. I might, for example specify:
Note that the backslash should be doubled (so it isn't interpreted as an 
escape for the "m" that follows it), or replaced with a forward slash.

Duncan Murdoch
contain the output of my R program.
Geriatric Medicine
with
file
created
process."
the
the
problem
the
it
http://www.R-project.org/posting-guide.html