Skip to content
Prev 360796 / 398506 Next

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

Hi Jim,

I tried:

sink("all.Rout")
try(log("a"))
sink()

The program executes without warning or error. The file "all.Rout" is 
begin created. Nothing will be written to it. The file is accessable 
rights after the execution of the program by notepad.exe.

The program

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

creates the file, does not write anything to it and is not accessable 
after program execution in R with notepad.exe.

Any ideas what happens behind the szenes?

Kind regards

Georg




Von:    Jim Lemon <drjimlemon at gmail.com>
An:     G.Maubach at weinwolf.de, 
Kopie:  r-help mailing list <r-help at r-project.org>
Datum:  10.05.2016 13:16
Betreff:        Re: Re: [R] sink(): Cannot open file



Have you tried:

sink("all.Rout")
try(log("a"))
sink()

Jim
On Tue, May 10, 2016 at 9:05 PM, <G.Maubach at weinwolf.de> wrote: