Re: [R] Making TIFF images with rtiff

From: Chuck Cleland <ccleland_at_optonline.net>
Date: Fri 12 Jan 2007 - 16:17:53 GMT

Peter Dalgaard wrote:

> Inman, Brant A. M.D. wrote:

>> Thank you Peter Dalgaard.
>>
>> When I open a DOS box and type gswin32c, I do indeed get an error message saying that it can't find the program. I edited the Windows system environmental variable "Path" and the user environmental variable "PATH" (wasn't sure which to edit), to contain the follwing after a semicolon "C:\Program Files\gs\gs8.54\bin\". This effectively fixed the Dos box problem. I now get a GS prompt when I type gswin32c.
>>
>> When I restart R and use the following code, I no longer get an error message.
>>
>> --------
>>
>>> attach(cars)
>>> bitmap(file='C:\\Documents and Settings\\m007704\\Desktop\\test.tif',
>>>
>> + type = "tifflzw", res = 1200)
>>
>>> plot(speed ~ dist)
>>>
>> --------
>>
>> Alas, if it was only that easy! When I look on my desktop (to which the file address above correctly refers to), there is no image file of any sort to be found. Any ideas as to what I am doing wrong?
>>
>>
> Hmmm.... You may be missing a final dev.off() or/and you need the
> space-free version of "Documents and Settings" (dir/x c:\). Beyond that,
> I'm out of ideas -- I don't use Windows all that often.

  I'm on WinXP Pro and the following puts test.tif on the Desktop for me:

attach(cars)
bitmap(file='C:\\DOCUME~1\\CHARLE~1\\Desktop\\test.tif', type = "tifflzw", res = 1200)
plot(speed ~ dist)
dev.off()

  It does not work with spaces in the path.

-- 
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 512-0171 (M, W, F)
fax: (917) 438-0894

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sat Jan 13 03:32:50 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 12 Jan 2007 - 17:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.