[R] Problem with pdf, png, jpeg devices and files named CON on Window s
Brandt, T. (Tobias)
TobiasBr at Taquanta.com
Mon Jan 15 11:05:15 CET 2007
I cannot seem to create any files that have the name "CON" before the file
extension, i.e. all of the following fail:
Error in pdf("CON.pdf") : unable to start device pdf
Error in jpeg("CON.jpeg") : unable to start device devWindows
Error in png("CON.png") : unable to start device devWindows
Error in file(file, ifelse(append, "a", "w")) :
unable to open connection
Any filename other than this works fine.
Remembering that in the old DOS days, commands like 'copy CON myfile.bat'
were common, I suspected that this has something to do with CON being a
reserved word so I tried to create the files manually in Windows explorer.
Creating files named 'CON.png', 'CON.pdf', 'CON.txt' all work fine. However
I did notice that Windows won't let me create a file named just "CON".
However since the devices that I'm trying to create have extensions, I don't
understand why they fail.
Who can help?
system i386, mingw32
svn rev 38247
version.string Version 2.3.1 (2006-06-01)
"Windows" "NT 5.1" "(build 2600)
Service Pack 2"
Nedbank Limited Reg No 1951/000009/06. The following link displays the names of the Nedbank Board of Directors and Company Secretary. [ http://www.nedbank.co.za/terms/DirectorsNedbank.htm ]
This email is confidential and is intended for the addressee only. The following link will take you to Nedbank's legal notice. [ http://www.nedbank.co.za/terms/EmailDisclaimer.htm ]
More information about the R-help