Skip to content

Sweave, LaTeX, and ... quartz?

4 messages · Martin Henry H. Stevens, Simon Urbanek

#
Hi Folks,

I was wondering how others generate on-screen graphics and graphics  
files when they want to use Sweave to generate Latex documents.

I am using Aquamacs
( GNU Emacs 22.0.97.1 (powerpc-apple-darwin7.9.0, Carbon Version  
1.6.0)  of 2007-04-15 on rodrigues.inf.ed.ac.uk - Aquamacs  
Distribution 1.0rc3 )

I have been using x11(), but I would prefer to use a quartz device,  
simply because the on-screen quality is much better, and I imagine  
there are other advantages as well?

Is CarbonEL still recommended? An older hack seems unavailable.
 > install.packages("CarbonEL",,"http://rforge.net/")
Warning message:
package 'CarbonEL' is not available


Thank you for your solutions.

Hank


Dr. Hank Stevens, Assistant Professor
338 Pearson Hall
Botany Department
Miami University
Oxford, OH 45056

Office: (513) 529-4206
Lab: (513) 529-4262
FAX: (513) 529-4243
http://www.cas.muohio.edu/~stevenmh/
http://www.muohio.edu/ecology/
http://www.muohio.edu/botany/

"E Pluribus Unum"
#
On May 15, 2007, at 10:33 AM, Martin Henry H. Stevens wrote:

            
install.packages("CarbonEL",,"http://rforge.net/",type='source')

should work regardless of the R version...

Cheers,
Simon
#
Hi Simon,
Thank you kindly.
I am using R 2.5.0 on a PowerPC with OS 10.4.9

That failed (output below), and I am not sure where to go from here.
Any input would be great.
Hank

 > install.packages("CarbonEL",,"http://rforge.net/",type='source')
trying URL 'http://rforge.net/src/contrib/CarbonEL_0.1-3.tar.gz'
Content type 'application/x-tar' length 2893 bytes
opened URL
==================================================
downloaded 2893 bytes

* Installing *source* package 'CarbonEL' ...
** libs
** arch - i386
gcc-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -no-cpp- 
precomp -I/Library/Frameworks/R.framework/Resources/include -I/ 
Library/Frameworks/R.framework/Resources/include/i386  -msse3  - 
D__NO_MATH_INLINES  -fPIC  -g -O2 -std=gnu99 -march=nocona -c ael.c - 
o ael.o
make: gcc-4.0: Command not found
make: *** [ael.o] Error 127
chmod: /Library/Frameworks/R.framework/Versions/2.5/Resources/library/ 
CarbonEL/libs/i386/*: No such file or directory
** arch - ppc
gcc-4.0 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk - 
std=gnu99 -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/ 
include -I/Library/Frameworks/R.framework/Resources/include/ppc  -I/ 
usr/local/include    -fPIC  -g -O2 -c ael.c -o ael.o
make: gcc-4.0: Command not found
make: *** [ael.o] Error 127
chmod: /Library/Frameworks/R.framework/Versions/2.5/Resources/library/ 
CarbonEL/libs/ppc/*: No such file or directory
ERROR: compilation failed for package 'CarbonEL'
** Removing '/Library/Frameworks/R.framework/Versions/2.5/Resources/ 
library/CarbonEL'

The downloaded packages are in
	/private/tmp/Rtmp0zpsEt/downloaded_packages
Warning message:
installation of package 'CarbonEL' had non-zero exit status in:  
install.packages("CarbonEL", , "http://rforge.net/", type = "source")
 >
On May 15, 2007, at 12:15 PM, Simon Urbanek wrote:

            
Dr. Hank Stevens, Assistant Professor
338 Pearson Hall
Botany Department
Miami University
Oxford, OH 45056

Office: (513) 529-4206
Lab: (513) 529-4262
FAX: (513) 529-4243
http://www.cas.muohio.edu/~stevenmh/
http://www.muohio.edu/ecology/
http://www.muohio.edu/botany/

"E Pluribus Unum"
#
On May 15, 2007, at 2:20 PM, Martin Henry H. Stevens wrote:

            
I have posted CarbonEL for R 2.5.0, so it should now work even  
without type='source'.
Please make sure you have Xcode 2.4.1 installed. It appears as if  
you're missing the gcc compiler. In case you're running the old gcc  
3.3, try
sudo gcc_select 4.0
before installing CarbonEL.

Cheers,
Simon