[R] sink(): Cannot open file
drjimlemon at gmail.com
Tue May 10 12:50:54 CEST 2016
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:
might get you there.
On Tue, May 10, 2016 at 5:25 PM, <G.Maubach at weinwolf.de> wrote:
> Hi All,
> I would like to route the output to a file using sink(). When using the
> example from the ?sink documentation:
> i <- 1:10
> outer(i, i, "*")
> ## capture all the output to a file.
> zz <- file("all.Rout", open = "wt")
> sink(zz, type = "message")
> ## back to the console
> sink(type = "message")
> I can not open the file in Windows Explorer. The error message is:
> "Cannot open file. File is in use be another proces."
> How can I close the file in a manner that I can open it right after it was
> Kind regards
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help