Displaying 1 result from an estimated 1 matches for "filer70d5s167e".
2002 Feb 28
2
Failed file("foo", "r") keeps file open? (PR#1333)
...) # Create a filename that does not exist
for(k in 1:100) {
cat(k, ": ");
try(fh <- file(tmpfile, "r"))
close(file("tmp.txt", "w")) # Opens and closes a file for writing.
}
1 Error in file(tempfile(), "r") : cannot open file `/tmp/fileR70d5S167e'
2 Error in file(tempfile(), "r") : cannot open file `/tmp/fileR70d5S2781'
...
47 Error in file(tempfile(), "r") : cannot open file `/tmp/fileR70d5S345b'
Error in close.connection(file("tmp.txt", "w")) :
cannot close output sink connection...