Skip to content
Prev 360792 / 398506 Next

Antwort: Re: sink(): Cannot open file

Hi Jim,

thanks for your reply.

ad 1)
"all.Rout" was created in the correct directory. It exists properly with 
correct file properties on Windows, e.g. creation date and time and file 
size information.

ad 2)
I can not access the file with Notepad.exe directly after it was created 
by R.  The error message is (translated):

"Cannot access file "all.Rout". The file is opened by another process."

ad 3)
If I close R completely the file access is released. Then I can read the 
file using Notepad.exe. The contents is:

Error in log("a") : non-numeric argument to mathematical function

I tried

close(zz)

but the error persists.

To me it looks like R is still accessing the file and not releasing the 
connection for other programs. close(zz) should have solved the problem 
but unfortantely it doesn't.

What else could I try?

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 12:50
Betreff:        Re: [R] sink(): Cannot open file



Hi Georg,
I don't suppose that you have:

1) checked that the file "all.Rout" exists somewhere?

2) if so, looked at the file with Notepad, perhaps?

3) let us in on the secret by pasting the contents of "all.Rout" into
your message if it is not too big?

At a guess, trying:

 close(zz)

might get you there.

Jim
On Tue, May 10, 2016 at 5:25 PM, <G.Maubach at weinwolf.de> wrote:
was
http://www.R-project.org/posting-guide.html