Skip to content
Prev 360798 / 398506 Next

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

Try closing the type of sink you're actually opening:


zz <- file("all.Rout", open = "wt")
sink(zz, type = "message")
try(log("a"))
sink(type = "message")
close(zz)
unlink(zz)


If you look carefully at the example in?sink, there are two close
statements, one for each stream being sent to that file.

Sarah
On Tue, May 10, 2016 at 11:05 AM, <G.Maubach at weinwolf.de> wrote: