On 23.11.2011 14:43, Toby Marthews wrote:> Dear R,
>
> The glmulti package no longer loads through the library() command,
apparently because of a problem with rJava.
> I have today reinstalled R from scratch (updated to v2.14.0) and
reinstalled all packages from scratch and updated them all too. The problem is
the same as I found on v2.13.2. See session below for the error. I tried
> install.packages(rJava) as advised by the error report but it didn't
help (see session below).
Please read more carefully:
"Try re-installing Java and make sure R and Java have matching
architectures."
It does not ask you to reinstall *r*Java but to reinstall Java.
Have you done that? So which architecture is your running R version and
which architecture is your Java version?
Best,
Uwe Ligges
>
> Any advice would be much appreciated: I can now not use glmulti at all and
I can't see how to solve this!
>
> Thank you very much R Help!
> Best,
> Toby
>
> ################
>
> R version 2.14.0 (2011-10-31)
> Copyright (C) 2011 The R Foundation for Statistical Computing
> ISBN 3-900051-07-0
> Platform: x86_64-pc-mingw32/x64 (64-bit)
>
> R is free software and comes with ABSOLUTELY NO WARRANTY.
> You are welcome to redistribute it under certain conditions.
> Type 'license()' or 'licence()' for distribution details.
>
> Natural language support but running in an English locale
>
> R is a collaborative project with many contributors.
> Type 'contributors()' for more information and
> 'citation()' on how to cite R or R packages in publications.
>
> Type 'demo()' for some demos, 'help()' for on-line help, or
> 'help.start()' for an HTML browser interface to help.
> Type 'q()' to quit R.
>
> [Previously saved workspace restored]
>
>> library("glmulti")
> Loading required package: rJava
> Error : .onLoad failed in loadNamespace() for 'rJava', details:
> call: stop("No CurrentVersion entry in '", key,
"'! Try re-installing Java
> and make sure R and Java have matching architectures.")
> error: object 'key' not found
> Error: package ?rJava? could not be loaded
>> install.packages("glmulti")
> --- Please select a CRAN mirror for use in this session ---
> trying URL
>
'http://www.stats.bris.ac.uk/R/bin/windows/contrib/2.14/glmulti_1.0.2.zip'
> Content type 'application/zip' length 104179 bytes (101 Kb)
> opened URL
> downloaded 101 Kb
>
> package ?glmulti? successfully unpacked and MD5 sums checked
>
> The downloaded packages are in
> C:\Users\TobyM\AppData\Local\Temp\RtmpUD3kYK\downloaded_packages
>> library("glmulti")
> Loading required package: rJava
> Error : .onLoad failed in loadNamespace() for 'rJava', details:
> call: stop("No CurrentVersion entry in '", key,
"'! Try re-installing Java
> and make sure R and Java have matching architectures.")
> error: object 'key' not found
> Error: package ?rJava? could not be loaded
>> install.packages("rJava")
> trying URL
>
'http://www.stats.bris.ac.uk/R/bin/windows/contrib/2.14/rJava_0.9-2.zip'
> Content type 'application/zip' length 676445 bytes (660 Kb)
> opened URL
> downloaded 660 Kb
>
> package ?rJava? successfully unpacked and MD5 sums checked
>
> The downloaded packages are in
> C:\Users\TobyM\AppData\Local\Temp\RtmpUD3kYK\downloaded_packages
>> library("glmulti")
> Loading required package: rJava
> Error : .onLoad failed in loadNamespace() for 'rJava', details:
> call: stop("No CurrentVersion entry in '", key,
"'! Try re-installing Java
> and make sure R and Java have matching architectures.")
> error: object 'key' not found
> Error: package ?rJava? could not be loaded
>>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.