[R-SIG-Mac] Trouble installing iplots
Simon Urbanek
simon.urbanek at r-project.org
Thu Sep 6 19:58:14 CEST 2007
Ken,
my guess is (because you didn't tell us) that you're using iplots
from within the R GUI. Currently that is officially not supported,
but you can try you luck pasting the following code before loading
iplots:
.jinit()
.jcall("java/lang/System","S","setProperty","register.about","false")
.jcall("java/lang/System","S","setProperty","register.open","false")
.jcall("java/lang/
System","S","setProperty","register.preferences","false")
.jcall("java/lang/System","S","setProperty","register.quit","false")
Note, however, that you're on your own. Due to the way the R and Java
event loops mesh (or don't to be precise) on Mac OS X, you may
encounter deadlocks, so I would recommend using JGR with iplots
instead (at least on a Mac).
Cheers,
Simon
On Sep 4, 2007, at 8:48 AM, Ken Kelley wrote:
> I just installed R 2.5.1 on my Mac (OS X 10.4.10) and I also tried to
> install iplots. From the package install menu, I attempted to
> install iplots
> (selecting install dependencies). Here is what I get after it is
> installed
> and loaded:
>
> trying URL '
> http://cran.r-project.org/bin/macosx/universal/contrib/2.5/
> iplots_1.1-0.tgz'
> Content type 'application/x-gzip' length 381157 bytes
> opened URL
> ==================================================
> downloaded 372Kb
>
>
> The downloaded packages are in
> /tmp/RtmpkIVpn2/downloaded_packages
>> library(iplots)
> Error in .jnew("org/rosuda/iplots/Framework") :
> Failed to create object of class `org/rosuda/iplots/Framework'
> In addition: Warning message:
> NewObject("org/rosuda/iplots/Framework","()V",...) failed in:
> .jnew("org/rosuda/iplots/Framework")
> Error in library(iplots) : .First.lib failed for 'iplots'
> Exception in thread "main" java.lang.NoClassDefFoundError
> at com.apple.mrj.MRJPriv.registerAboutHandler(MRJPriv.java:281)
> at com.apple.mrj.MRJApplicationUtils.registerAboutHandler(
> MRJApplicationUtils.java:64)
> at org.rosuda.util.PlatformMac.registerHandlers(PlatformMac.java:49)
> at org.rosuda.util.PlatformMac.<init>(PlatformMac.java:20)
> at org.rosuda.iplots.PlatformMac.<init>(PlatformMac.java:16)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(
> NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> at java.lang.Class.newInstance0(Class.java:350)
> at java.lang.Class.newInstance(Class.java:303)
> at org.rosuda.util.Platform.initPlatform(Platform.java:44)
> at org.rosuda.iplots.Framework.<init>(Framework.java:48)
>
>
> Any information on what is going on would be greatly appreciated,
> Ken
>
> My system and version information are given below:
>> version
> _
> platform i386-apple-darwin8.9.1
> arch i386
> os darwin8.9.1
> system i386, darwin8.9.1
> status
> major 2
> minor 5.1
> year 2007
> month 06
> day 27
> svn rev 42083
> language R
> version.string R version 2.5.1 (2007-06-27)
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
>
More information about the R-SIG-Mac
mailing list