Skip to content
Back to formatted view

Raw Message

Message-ID: <22324.16824.223426.299672@stat.math.ethz.ch>
Date: 2016-05-12T08:41:28Z
From: Martin Maechler
Subject: Antwort: Re: Re:  Antwort: Re: Re: sink(): Cannot open file
In-Reply-To: <OFE75E365B.FBDCB581-ONC1257FB0.005B5E6B-C1257FB0.005C1243@lotus.hawesko.de>

> Hi Sarah,
> yes, I followed your suggestion.

I doubt that you followed it correctly. Sarah's advise is
usually really very sound -- and your code below is *not* :

> If I do exactly what is in the example of the documentation:

> sink("C:/Temp/sink-examp.txt")
> i <- 1:10
> outer(i, i, "*")
> sink()
> unlink("C:/Temp/sink-examp.txt")

> it does not write anything, i. e. no file is created in "C:/Temp/". The 
> script is executed without an error or warning message.

Well, did you ever lookup what unlink() does ?
I save you the time : it does *REMOVE* a file.

So no wonder that you don't see any result after executing the
above R code block..

Martin