From Setzer.Woodrow@epamail.epa.gov  Tue Dec 19 20:08:20 2000
From: Setzer.Woodrow@epamail.epa.gov (Setzer.Woodrow@epamail.epa.gov)
Date: Tue, 19 Dec 2000 21:08:20 +0100 (MET)
Subject: [Rd] Problem with sink() in 1.20 on Windows (PR#779)
Message-ID: <200012192008.VAA09113@pubhealth.ku.dk>

When I use sink(filename) to save the results of the run, the file
does not seem to be closed or released back to the OS after I issue
the "sink()" command.  Here is a baby example:

sink("test.txt")
tdta <- data.frame(x = x <- 0:10,y = 2 * x + rnorm(11))

print(summary(lm(y ~ x, data=tdta)))
sink()

At this point (even after refreshing the Explorer window) the filesize of
"test.txt" is listed as 0 bytes, and as long as Rgui is running, I
cannot delete the file.  Emacs cannot read the file (but Notepad can).  This happens both in the gui
and when the commands are in a file run via "source()".

--please do not edit the information below--

Version:
 platform = i386-pc-mingw32
 arch = x86
 os = Win32
 system = x86, Win32
 status =
 major = 1
 minor = 2.0
 year = 2000
 month = 12
 day = 15
 language = R

Windows 9x 4.10 (build 1998)

Search Path:
 .GlobalEnv, Autoloads, package:base

R. Woodrow Setzer, Jr.                                            Phone:
(919) 541-0128
Experimental Toxicology Division                       Fax:  (919) 541-5394
Pharmacokinetics Branch
NHEERL MD-74; US EPA; RTP, NC 27711


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Problem with sink() in 1.20 on Windows (PR#779)
Setzer.Woodrow@epamail.epa.gov