Adrian,

On Mar 9, 2010, at 13:50 , Adrian Dragulescu wrote:


Simon,

I got bounced as a non-member. Maybe you are in the best position to have an opinion on this.


Yes, since OS X 10.5 Apple dropped support for AWT on the main thread, so essentially you cannot use any graphics classes in R on OS X 10.5 since R is single-threaded. They work in JGR, though.

This is a bit problematic for tests and I don't have a good solution. I have a hack that you're welcome to use -- when checking packages on OS X 10.5 we set NOAWT=1 so you could make your graphics tests conditional on

if (!nzchar(Sys.getenv("NOAWT"))) {

## AWT/Swing tests here

}

It's not pretty but that's all I can offer at the moment .. Ideally Apple would fix that issue but ...

Cheers,
Simon


(CCing to R-SIG-Mac as that seems to have been intended)

---------- Forwarded message ----------
Date: Tue, 9 Mar 2010 08:54:35 -0800 (PST)
From: Adrian Dragulescu <adria...@eskimo.com>
To: r-sig-mac@stat.math.ethz.ch
Subject: build of package xlsx fails on Mac


Hello,

One user pointed to me that the build of package xlsx fails on Mac. I did not change anything on CRAN since I've uploaded the package. I believe it used to work fine.

The issue is Java specific as my package uses rJava. When running the examples, one gets:
checking Rd contents ... OK
checking examples ... ERROR
Running examples in 'xlsx-Ex.R' failed.
The error most likely occurred in:

### * CellStyle
flush(stderr()); flush(stdout())
### Name: CellStyle
### Title: Functions to manipulate cells.
### Aliases: CellStyle createCellStyle setCellStyle getCellStyle
### ** Examples
wb <- createWorkbook()
sheet <- createSheet(wb, "Sheet1")
rows <- createRow(sheet, rowIndex=1)
cell.1 <- createCell(rows, colIndex=1)[[1,1]]
setCellValue(cell.1, "Hello R!")
cellStyle1 <- createCellStyle(wb, borderPosition="RIGHT",
+ borderPen="BORDER_DASHED", fillBackgroundColor="yellow",
+ fillForegroundColor="tomato", fillPattern="BIG_SPOTS")
2010-02-15 12:47:54.174 R[33120:613] Apple AWT Java VM was loaded on first thread -- can't start AWT.
Error in .jnew("java.awt.Color", rgb[1], rgb[2], rgb[3]) :
java.lang.NoClassDefFoundError
Calls: createCellStyle -> .jcall -> .xssfcolor -> .jnew -> .External
Execution halted

Let me know if there is something on my side that I need to do. Of course, I can \dontrun the example.

Thank you,
Adrian



---------- Forwarded message ----------
Date: Mon, 8 Mar 2010 14:41:40 -0800
From: Ralf Tautenhahn <rtaut...@scripps.edu>
To: Adrian Dragulescu <adria...@eskimo.com>
Subject: RE: xlsx and binary data

Hi Adrian,

I see that the xlsx build  fails on Mac:
http://www.r-project.org/nosvn/R.check/r-release-macosx-ix86/xlsx-00check.html

I hope this is only a temporary problem ?

Regards,
Ralf.




_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to