[R-SIG-Mac] R 2.0.0 Change Working Directory

Simon Urbanek Simon.Urbanek at math.uni-augsburg.de
Tue Oct 26 16:17:32 CEST 2004


Hi Jean,

On Oct 26, 2004, at 3:51 PM, Jean Thioulouse wrote:

> I have tried PitStop to edit the pdf files created by R, but it did not
> work (seems that the pdf contains only one large bitmap). Do you know
> any other software able to edit pdf files obtained with R ? How can I
> use the pdf version of the graphic that is in the clipboard ?

I used Adobe Illustrator and it worked flawlessly - you can even edit 
text in real text mode, not as glyphs. I have never heard of PitStop 
but either it cannot handle PDFs properly, or for some reason it 
fetches the bitmap version instead. If the latter is the case, you can 
disable the TIFF version by replacing the copy: method in RQuartz by 
this one:

- (IBAction)copy:(id)sender
{
	NSPasteboard *pb = [NSPasteboard generalPasteboard];
	[pb declareTypes: [NSArray arrayWithObjects: NSPDFPboardType, nil ] 
owner:self];

	QUARTZ_WORK_BEGIN;
	[deviceView setPDFDrawing:YES];
	[deviceView lockFocus];
	[deviceView writePDFInsideRect:[deviceView bounds] toPasteboard:pb];
	[deviceView unlockFocus];
	[deviceView setPDFDrawing:NO];
	QUARTZ_WORK_END;
}

Cheers,
Simon

---
Simon Urbanek
Department of computer oriented statistics and data analysis
University of Augsburg
Universitätsstr. 14
86135 Augsburg
Germany

Tel: +49-821-598-2236
Fax: +49-821-598-2200

Simon.Urbanek at Math.Uni-Augsburg.de
http://simon.urbanek.info



More information about the R-SIG-Mac mailing list