Hello Jim and Kasper,

Thank you very much for your prompt advice. With your guidance I've  
been able to mend the problem and now can get a complete analysis out  
of ABarray. I will be contacting the original author with these  
findings as well.

Again, thank you so much! Your help is greatly appreciated.

alison

On Feb 7, 2007, at 2:38 PM, Kasper Daniel Hansen wrote:

> Essentially it is because you Mac system cannot make BMP files (the  
> bmp() function does not exists in the CRAN version).
>
> Do what James say and ask the maintainer of ABarray to switch to an  
> image format more widely supported.
>
> Kasper
>
> On Feb 7, 2007, at 9:54 AM, James W. MacDonald wrote:
>
>> Hi Alison,
>>
>> I took a peek at doPlotEset(), and you are correct; at one point this
>> function is trying to create a bitmap file using the bmp() function
>> (which AFAIK is a Windows only function). The current devel  
>> version of
>> ABarray has most of the bmp() calls commented out and replaced by  
>> calls
>> to pdf(), although not the one that is giving you problems.
>>
>> As you already noted, you could simply use your co-worker's  
>> Windows box
>> to do the analysis. Another alternative would be to write a bmp()
>> function of your own that will cause your ouput to be a pdf instead.
>> Something like (untested!):
>>
>> bmp <- function(filename, width, height){
>> 	fn <- paste(pdfDir,
>> 		    sub("\\.bmp$", "\\.pdf", filename), sep="")
>> 	pdf(file=fn, width=width/100, height=height/100)
>> }
>>
>>
>> You can either write this function in an editor of your choice, save
>> (preferably with a .R extension), and then source() into R before
>> running your code, or just write it in your R session. The benefit of
>> the first case is that you could put it in say your .Rprofile file  
>> and
>> have it automatically load any time you start R (either load 
>> (myfile.R),
>> or just the function itself).
>>
>> Note that this is sort of a cheesy hack, since we are relying on the
>> assumption that ABarray will create something called 'pdfDir' that we
>> can use within the bmp() function to come up with the correct  
>> directory
>> to put the pdf, so this is really an ad hoc fix for this one problem.
>>
>> HTH,
>>
>> Jim
>

Alison Ziesel
Department of Ophthalmology, Emory University
aziesel@emory.edu




	[[alternative HTML version deleted]]

