Re: [R] rJava works with 32-bit but not 64

2013-02-06 Thread Robert Baer
For what it is worth Spencer, I can start rJava in both 32-bit R and 
64-bit R for Windows 7.  [And could even before Simon fixed the error 
message).


And yes, I have both 32-bit Java and 64-bit Java 1.7.0_13 installed.  
They should be separate entries under your control panel.


Rob

--

Robert W. Baer, Ph.D.
Professor of Physiology
Kirksille College of Osteopathic Medicine
A. T. Still University of Health Sciences
Kirksville, MO 63501 USA

__
R-help@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.


Re: [R] rJava works with 32-bit but not 64

2013-02-05 Thread Spencer Graves

On 2/4/2013 3:55 PM, Simon Urbanek wrote:

On Feb 4, 2013, at 7:14 PM, Spencer Graves wrote:


On 2/4/2013 7:03 AM, Simon Urbanek wrote:

On Feb 4, 2013, at 10:27 AM, Spencer Graves wrote:


On 2/4/2013 5:22 AM, Milan Bouchet-Valat wrote:

Le lundi 04 février 2013 à 08:19 -0400, Simon Urbanek a écrit :

On Feb 4, 2013, at 6:33 AM, Spencer Graves wrote:


On 2/3/2013 11:21 PM, Pascal Oettli wrote:

Hello,

Do you have a 64-bit version of Java?

rJava says to you:
call: stop(No CurrentVersion entry in ', key, '! Try

re-installing Java and make sure R and Java have matching
architectures.)

Simon, have you noticed there seem to be a bug in rJava about the
missing 'key' variable? The error message would be (slightly) cleaner if
the stop() call succeeded, wouldn't it? ;-)

  A subtle bug which only appears with the 64-bit but not the 32-bit 
version ... ?


Just a subtle bug in the error message if there is no Java installed (has 
nothing to do with the architecture). Now fixed.


  Great.  How can I get the new version?  [If it were on R-Forge, I could get it via 
install.packages(rJava, repos=http://R-Forge.R-project.org;).]


You got it almost right - it's slightly shorter than that:

install.packages(rJava,, http://RForge.net;)

but you know that if you ever looked at the rJava page ;)



Thanks. Unfortunately, I still have problems with 64-bit rJava: As noted 
below, after your install.packages, I get an error on library(rJava) 
[which works fine for me with 32-bit R]. Thanks, Spencer



 install.packages(rJava,, http://RForge.net;)
trying URL 'http://RForge.net/bin/windows/contrib/2.15/rJava_0.9-4.zip'
Content type 'application/zip' length 761030 bytes (743 Kb)
opened URL
downloaded 743 Kb


The downloaded binary packages are in
C:\Users\sgraves\AppData\Local\Temp\Rtmp8wP4ap\downloaded_packages
 library(rJava)
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: No CurrentVersion entry in Software/JavaSoft registry! Try 
re-installing Java and make sure R and Java have matching architectures.

Error: package/namespace load failed for ‘rJava’
 sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] tools_2.15.2



Cheers,
Simon



  Thanks,
  Spencer

Cheers,
Simon



  I agree:  Thanks very much for your work.  Spencer


Thanks for your work


  I think I probably have a 32-bit version and not a 64-bit,

because it works with 32-bit R but not 64-bit R.

  Is it feasible to have both installed in a way that allows the

each version of R to select its own version of Java?

Yes, that is the default. 32-bit R will only see 32-bit Java and vice
versa, because Windows separates 32-bit and 64-bit registries.



  A comment on stackoverflow suggests that may not be easy

(http://stackoverflow.com/questions/5272216/is-it-possible-to-install-both-32bit-and-64bit-java-on-windows-7).
Ehm, it says Yes, it is absolutely no problem.  -- which part of it
suggests it's not easy? SO is a good source of rumors, seldom facts --
but in this case it's not too far from the truth.

Cheers,
Simon



  Thanks,
  Spencer


Regards,
Pascal


Le 04/02/2013 14:27, Spencer Graves a écrit :

Hello:


   rJava works for me under 32-bit but under not 64-bit R; see below.


   Suggestions?
   Thanks,
   Spencer



library(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/namespace load failed for 'rJava'

sessionInfo()

R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics  grDevices utils datasets  methods base
##



library(rJava)
sessionInfo()

R version 2.15.2 (2012-10-26)
Platform: i386-w64-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics  grDevices utils datasets  methods base

other attached packages:
[1] rJava_0.9-3


__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide

Re: [R] rJava works with 32-bit but not 64

2013-02-05 Thread Simon Urbanek

On Feb 5, 2013, at 5:51 PM, Spencer Graves wrote:

 On 2/4/2013 3:55 PM, Simon Urbanek wrote:
 On Feb 4, 2013, at 7:14 PM, Spencer Graves wrote:
 
 On 2/4/2013 7:03 AM, Simon Urbanek wrote:
 On Feb 4, 2013, at 10:27 AM, Spencer Graves wrote:
 
 On 2/4/2013 5:22 AM, Milan Bouchet-Valat wrote:
 Le lundi 04 février 2013 à 08:19 -0400, Simon Urbanek a écrit :
 On Feb 4, 2013, at 6:33 AM, Spencer Graves wrote:
 
 On 2/3/2013 11:21 PM, Pascal Oettli wrote:
 Hello,
 
 Do you have a 64-bit version of Java?
 
 rJava says to you:
 call: stop(No CurrentVersion entry in ', key, '! Try
 re-installing Java and make sure R and Java have matching
 architectures.)
 Simon, have you noticed there seem to be a bug in rJava about the
 missing 'key' variable? The error message would be (slightly) cleaner if
 the stop() call succeeded, wouldn't it? ;-)
  A subtle bug which only appears with the 64-bit but not the 32-bit 
 version ... ?
 
 Just a subtle bug in the error message if there is no Java installed (has 
 nothing to do with the architecture). Now fixed.
 
  Great.  How can I get the new version?  [If it were on R-Forge, I 
 could get it via install.packages(rJava, 
 repos=http://R-Forge.R-project.org;).]
 
 You got it almost right - it's slightly shorter than that:
 
 install.packages(rJava,, http://RForge.net;)
 
 but you know that if you ever looked at the rJava page ;)
 
 
 Thanks. Unfortunately, I still have problems with 64-bit rJava: As noted 
 below, after your install.packages, I get an error on library(rJava) [which 
 works fine for me with 32-bit R]. Thanks, Spencer
 

Obviously. But thanks for testing the error message, you have shown that it 
works now (this was what we were talking about - maybe you misread the e-mail 
trail?).

If you actually want to use rJava in 64-bit R you'll have to install 64-bit 
Java as several of us mentioned before.

Cheers,
Simon



 
  install.packages(rJava,, http://RForge.net;)
 trying URL 'http://RForge.net/bin/windows/contrib/2.15/rJava_0.9-4.zip'
 Content type 'application/zip' length 761030 bytes (743 Kb)
 opened URL
 downloaded 743 Kb
 
 
 The downloaded binary packages are in
 C:\Users\sgraves\AppData\Local\Temp\Rtmp8wP4ap\downloaded_packages
  library(rJava)
 Error : .onLoad failed in loadNamespace() for 'rJava', details:
 call: fun(libname, pkgname)
 error: No CurrentVersion entry in Software/JavaSoft registry! Try 
 re-installing Java and make sure R and Java have matching architectures.
 Error: package/namespace load failed for ‘rJava’
  sessionInfo()
 R version 2.15.2 (2012-10-26)
 Platform: x86_64-w64-mingw32/x64 (64-bit)
 
 locale:
 [1] LC_COLLATE=English_United States.1252
 [2] LC_CTYPE=English_United States.1252
 [3] LC_MONETARY=English_United States.1252
 [4] LC_NUMERIC=C
 [5] LC_TIME=English_United States.1252
 
 attached base packages:
 [1] stats graphics grDevices utils datasets methods base
 
 loaded via a namespace (and not attached):
 [1] tools_2.15.2
 
 
 Cheers,
 Simon
 
 
  Thanks,
  Spencer
 Cheers,
 Simon
 
 
  I agree:  Thanks very much for your work.  Spencer
 
 Thanks for your work
 
  I think I probably have a 32-bit version and not a 64-bit,
 because it works with 32-bit R but not 64-bit R.
  Is it feasible to have both installed in a way that allows the
 each version of R to select its own version of Java?
 
 Yes, that is the default. 32-bit R will only see 32-bit Java and vice
 versa, because Windows separates 32-bit and 64-bit registries.
 
 
  A comment on stackoverflow suggests that may not be easy
 (http://stackoverflow.com/questions/5272216/is-it-possible-to-install-both-32bit-and-64bit-java-on-windows-7).
 Ehm, it says Yes, it is absolutely no problem.  -- which part of it
 suggests it's not easy? SO is a good source of rumors, seldom facts --
 but in this case it's not too far from the truth.
 
 Cheers,
 Simon
 
 
  Thanks,
  Spencer
 
 Regards,
 Pascal
 
 
 Le 04/02/2013 14:27, Spencer Graves a écrit :
 Hello:
 
 
   rJava works for me under 32-bit but under not 64-bit R; see 
 below.
 
 
   Suggestions?
   Thanks,
   Spencer
 
 
 library(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/namespace load failed for 'rJava'
 sessionInfo()
 R version 2.15.2 (2012-10-26)
 Platform: x86_64-w64-mingw32/x64 (64-bit)
 
 locale:
 [1] LC_COLLATE=English_United States.1252
 [2] LC_CTYPE=English_United States.1252
 [3] LC_MONETARY=English_United States.1252
 [4] LC_NUMERIC=C
 [5] LC_TIME=English_United States.1252
 
 attached base packages:
 [1] stats graphics  grDevices utils datasets  methods base
 ##
 
 
 library(rJava)
 sessionInfo()
 R version 2.15.2 (2012-10-26)
 Platform: i386-w64-mingw32/i386 (32-bit)
 
 locale:
 [1] LC_COLLATE=English_United States.1252
 

Re: [R] rJava works with 32-bit but not 64

2013-02-04 Thread Simon Urbanek

On Feb 4, 2013, at 6:33 AM, Spencer Graves wrote:

 On 2/3/2013 11:21 PM, Pascal Oettli wrote:
 Hello,
 
 Do you have a 64-bit version of Java?
 
 rJava says to you:
 call: stop(No CurrentVersion entry in ', key, '! Try re-installing Java 
 and make sure R and Java have matching architectures.)
 
 
  I think I probably have a 32-bit version and not a 64-bit, because it 
 works with 32-bit R but not 64-bit R.
 
 
  Is it feasible to have both installed in a way that allows the each 
 version of R to select its own version of Java?

Yes, that is the default. 32-bit R will only see 32-bit Java and vice versa, 
because Windows separates 32-bit and 64-bit registries.


  A comment on stackoverflow suggests that may not be easy 
 (http://stackoverflow.com/questions/5272216/is-it-possible-to-install-both-32bit-and-64bit-java-on-windows-7).
  
 

Ehm, it says Yes, it is absolutely no problem.  -- which part of it suggests 
it's not easy? SO is a good source of rumors, seldom facts -- but in this case 
it's not too far from the truth.

Cheers,
Simon


 
  Thanks,
  Spencer
 
 
 Regards,
 Pascal
 
 
 Le 04/02/2013 14:27, Spencer Graves a écrit :
 Hello:
 
 
   rJava works for me under 32-bit but under not 64-bit R; see below.
 
 
   Suggestions?
   Thanks,
   Spencer
 
 
  library(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/namespace load failed for 'rJava'
  sessionInfo()
 R version 2.15.2 (2012-10-26)
 Platform: x86_64-w64-mingw32/x64 (64-bit)
 
 locale:
 [1] LC_COLLATE=English_United States.1252
 [2] LC_CTYPE=English_United States.1252
 [3] LC_MONETARY=English_United States.1252
 [4] LC_NUMERIC=C
 [5] LC_TIME=English_United States.1252
 
 attached base packages:
 [1] stats graphics  grDevices utils datasets  methods base
 
 
 ##
 
 
  library(rJava)
  sessionInfo()
 R version 2.15.2 (2012-10-26)
 Platform: i386-w64-mingw32/i386 (32-bit)
 
 locale:
 [1] LC_COLLATE=English_United States.1252
 [2] LC_CTYPE=English_United States.1252
 [3] LC_MONETARY=English_United States.1252
 [4] LC_NUMERIC=C
 [5] LC_TIME=English_United States.1252
 
 attached base packages:
 [1] stats graphics  grDevices utils datasets  methods base
 
 other attached packages:
 [1] rJava_0.9-3
 
 
 
 
 -- 
 Spencer Graves, PE, PhD
 President and Chief Technology Officer
 Structure Inspection and Monitoring, Inc.
 751 Emerson Ct.
 San José, CA 95126
 ph:  408-655-4567
 web:  www.structuremonitoring.com
 
 

__
R-help@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.


Re: [R] rJava works with 32-bit but not 64

2013-02-04 Thread Milan Bouchet-Valat
Le lundi 04 février 2013 à 08:19 -0400, Simon Urbanek a écrit :
 On Feb 4, 2013, at 6:33 AM, Spencer Graves wrote:
 
  On 2/3/2013 11:21 PM, Pascal Oettli wrote:
  Hello,
  
  Do you have a 64-bit version of Java?
  
  rJava says to you:
  call: stop(No CurrentVersion entry in ', key, '! Try
 re-installing Java and make sure R and Java have matching
 architectures.)
Simon, have you noticed there seem to be a bug in rJava about the
missing 'key' variable? The error message would be (slightly) cleaner if
the stop() call succeeded, wouldn't it? ;-)


Thanks for your work

   I think I probably have a 32-bit version and not a 64-bit,
 because it works with 32-bit R but not 64-bit R.
  
  
   Is it feasible to have both installed in a way that allows the
 each version of R to select its own version of Java?
 
 Yes, that is the default. 32-bit R will only see 32-bit Java and vice
 versa, because Windows separates 32-bit and 64-bit registries.
 
 
   A comment on stackoverflow suggests that may not be easy
 (http://stackoverflow.com/questions/5272216/is-it-possible-to-install-both-32bit-and-64bit-java-on-windows-7).
  
  
 
 Ehm, it says Yes, it is absolutely no problem.  -- which part of it
 suggests it's not easy? SO is a good source of rumors, seldom facts --
 but in this case it's not too far from the truth.
 
 Cheers,
 Simon
 
 
  
   Thanks,
   Spencer
  
  
  Regards,
  Pascal
  
  
  Le 04/02/2013 14:27, Spencer Graves a écrit :
  Hello:
  
  
rJava works for me under 32-bit but under not 64-bit R; see below.
  
  
Suggestions?
Thanks,
Spencer
  
  
   library(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/namespace load failed for 'rJava'
   sessionInfo()
  R version 2.15.2 (2012-10-26)
  Platform: x86_64-w64-mingw32/x64 (64-bit)
  
  locale:
  [1] LC_COLLATE=English_United States.1252
  [2] LC_CTYPE=English_United States.1252
  [3] LC_MONETARY=English_United States.1252
  [4] LC_NUMERIC=C
  [5] LC_TIME=English_United States.1252
  
  attached base packages:
  [1] stats graphics  grDevices utils datasets  methods base
  
  
  ##
  
  
   library(rJava)
   sessionInfo()
  R version 2.15.2 (2012-10-26)
  Platform: i386-w64-mingw32/i386 (32-bit)
  
  locale:
  [1] LC_COLLATE=English_United States.1252
  [2] LC_CTYPE=English_United States.1252
  [3] LC_MONETARY=English_United States.1252
  [4] LC_NUMERIC=C
  [5] LC_TIME=English_United States.1252
  
  attached base packages:
  [1] stats graphics  grDevices utils datasets  methods base
  
  other attached packages:
  [1] rJava_0.9-3
  
  
  
  
  -- 
  Spencer Graves, PE, PhD
  President and Chief Technology Officer
  Structure Inspection and Monitoring, Inc.
  751 Emerson Ct.
  San José, CA 95126
  ph:  408-655-4567
  web:  www.structuremonitoring.com
  
  
 
 __
 R-help@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.

__
R-help@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.


Re: [R] rJava works with 32-bit but not 64

2013-02-04 Thread Spencer Graves

On 2/3/2013 11:21 PM, Pascal Oettli wrote:

Hello,

Do you have a 64-bit version of Java?

rJava says to you:
call: stop(No CurrentVersion entry in ', key, '! Try re-installing
Java and make sure R and Java have matching architectures.)



  I think I probably have a 32-bit version and not a 64-bit, 
because it works with 32-bit R but not 64-bit R.



  Is it feasible to have both installed in a way that allows the 
each version of R to select its own version of Java?  A comment on 
stackoverflow suggests that may not be easy 
(http://stackoverflow.com/questions/5272216/is-it-possible-to-install-both-32bit-and-64bit-java-on-windows-7). 




  Thanks,
  Spencer



Regards,
Pascal


Le 04/02/2013 14:27, Spencer Graves a écrit :

Hello:


   rJava works for me under 32-bit but under not 64-bit R; see
below.


   Suggestions?
   Thanks,
   Spencer


  library(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/namespace load failed for 'rJava'
  sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics  grDevices utils datasets  methods base
 

##


  library(rJava)
  sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: i386-w64-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics  grDevices utils datasets  methods base

other attached packages:
[1] rJava_0.9-3





--
Spencer Graves, PE, PhD
President and Chief Technology Officer
Structure Inspection and Monitoring, Inc.
751 Emerson Ct.
San José, CA 95126
ph:  408-655-4567
web:  www.structuremonitoring.com


--
Spencer Graves, PE, PhD
President and Chief Technology Officer
Structure Inspection and Monitoring, Inc.
751 Emerson Ct.
San José, CA 95126
ph:  408-655-4567
web:  www.structuremonitoring.com

__
R-help@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.


Re: [R] rJava works with 32-bit but not 64

2013-02-04 Thread Spencer Graves

On 2/4/2013 5:22 AM, Milan Bouchet-Valat wrote:

Le lundi 04 février 2013 à 08:19 -0400, Simon Urbanek a écrit :

On Feb 4, 2013, at 6:33 AM, Spencer Graves wrote:


On 2/3/2013 11:21 PM, Pascal Oettli wrote:

Hello,

Do you have a 64-bit version of Java?

rJava says to you:
call: stop(No CurrentVersion entry in ', key, '! Try

re-installing Java and make sure R and Java have matching
architectures.)

Simon, have you noticed there seem to be a bug in rJava about the
missing 'key' variable? The error message would be (slightly) cleaner if
the stop() call succeeded, wouldn't it? ;-)



  A subtle bug which only appears with the 64-bit but not the 
32-bit version ... ?



  I agree:  Thanks very much for your work.  Spencer


Thanks for your work


  I think I probably have a 32-bit version and not a 64-bit,

because it works with 32-bit R but not 64-bit R.


  Is it feasible to have both installed in a way that allows the

each version of R to select its own version of Java?

Yes, that is the default. 32-bit R will only see 32-bit Java and vice
versa, because Windows separates 32-bit and 64-bit registries.



  A comment on stackoverflow suggests that may not be easy

(http://stackoverflow.com/questions/5272216/is-it-possible-to-install-both-32bit-and-64bit-java-on-windows-7).
Ehm, it says Yes, it is absolutely no problem.  -- which part of it
suggests it's not easy? SO is a good source of rumors, seldom facts --
but in this case it's not too far from the truth.

Cheers,
Simon



  Thanks,
  Spencer


Regards,
Pascal


Le 04/02/2013 14:27, Spencer Graves a écrit :

Hello:


   rJava works for me under 32-bit but under not 64-bit R; see below.


   Suggestions?
   Thanks,
   Spencer



library(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/namespace load failed for 'rJava'

sessionInfo()

R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics  grDevices utils datasets  methods base
##



library(rJava)
sessionInfo()

R version 2.15.2 (2012-10-26)
Platform: i386-w64-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics  grDevices utils datasets  methods base

other attached packages:
[1] rJava_0.9-3


__
R-help@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.


__
R-help@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.


Re: [R] rJava works with 32-bit but not 64

2013-02-04 Thread Simon Urbanek
On Feb 4, 2013, at 10:27 AM, Spencer Graves wrote:

 On 2/4/2013 5:22 AM, Milan Bouchet-Valat wrote:
 Le lundi 04 février 2013 à 08:19 -0400, Simon Urbanek a écrit :
 On Feb 4, 2013, at 6:33 AM, Spencer Graves wrote:
 
 On 2/3/2013 11:21 PM, Pascal Oettli wrote:
 Hello,
 
 Do you have a 64-bit version of Java?
 
 rJava says to you:
 call: stop(No CurrentVersion entry in ', key, '! Try
 re-installing Java and make sure R and Java have matching
 architectures.)
 Simon, have you noticed there seem to be a bug in rJava about the
 missing 'key' variable? The error message would be (slightly) cleaner if
 the stop() call succeeded, wouldn't it? ;-)
 
 
  A subtle bug which only appears with the 64-bit but not the 32-bit 
 version ... ?
 

Just a subtle bug in the error message if there is no Java installed (has 
nothing to do with the architecture). Now fixed.

Cheers,
Simon


 
  I agree:  Thanks very much for your work.  Spencer
 
 Thanks for your work
 
  I think I probably have a 32-bit version and not a 64-bit,
 because it works with 32-bit R but not 64-bit R.
 
  Is it feasible to have both installed in a way that allows the
 each version of R to select its own version of Java?
 
 Yes, that is the default. 32-bit R will only see 32-bit Java and vice
 versa, because Windows separates 32-bit and 64-bit registries.
 
 
  A comment on stackoverflow suggests that may not be easy
 (http://stackoverflow.com/questions/5272216/is-it-possible-to-install-both-32bit-and-64bit-java-on-windows-7).
 Ehm, it says Yes, it is absolutely no problem.  -- which part of it
 suggests it's not easy? SO is a good source of rumors, seldom facts --
 but in this case it's not too far from the truth.
 
 Cheers,
 Simon
 
 
  Thanks,
  Spencer
 
 Regards,
 Pascal
 
 
 Le 04/02/2013 14:27, Spencer Graves a écrit :
 Hello:
 
 
   rJava works for me under 32-bit but under not 64-bit R; see below.
 
 
   Suggestions?
   Thanks,
   Spencer
 
 
 library(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/namespace load failed for 'rJava'
 sessionInfo()
 R version 2.15.2 (2012-10-26)
 Platform: x86_64-w64-mingw32/x64 (64-bit)
 
 locale:
 [1] LC_COLLATE=English_United States.1252
 [2] LC_CTYPE=English_United States.1252
 [3] LC_MONETARY=English_United States.1252
 [4] LC_NUMERIC=C
 [5] LC_TIME=English_United States.1252
 
 attached base packages:
 [1] stats graphics  grDevices utils datasets  methods base
 ##
 
 
 library(rJava)
 sessionInfo()
 R version 2.15.2 (2012-10-26)
 Platform: i386-w64-mingw32/i386 (32-bit)
 
 locale:
 [1] LC_COLLATE=English_United States.1252
 [2] LC_CTYPE=English_United States.1252
 [3] LC_MONETARY=English_United States.1252
 [4] LC_NUMERIC=C
 [5] LC_TIME=English_United States.1252
 
 attached base packages:
 [1] stats graphics  grDevices utils datasets  methods base
 
 other attached packages:
 [1] rJava_0.9-3
 
 __
 R-help@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.
 
 

__
R-help@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.


Re: [R] rJava works with 32-bit but not 64

2013-02-04 Thread Robert Baer
Is it feasible to have both installed in a way that allows the 
each version of R to select its own version of Java?  A comment on 
stackoverflow suggests that may not be easy 
(http://stackoverflow.com/questions/5272216/is-it-possible-to-install-both-32bit-and-64bit-java-on-windows-7). 



One of the simplest ways to be sure of getting 64-bit Java is to use the 
64-bit version of Internet Explorer which makes things almost automatic.


Rob

--

Robert W. Baer, Ph.D.
Professor of Physiology
Kirksille College of Osteopathic Medicine
A. T. Still University of Health Sciences
Kirksville, MO 63501 USA

__
R-help@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.


Re: [R] rJava works with 32-bit but not 64

2013-02-04 Thread Spencer Graves

On 2/4/2013 7:03 AM, Simon Urbanek wrote:

On Feb 4, 2013, at 10:27 AM, Spencer Graves wrote:


On 2/4/2013 5:22 AM, Milan Bouchet-Valat wrote:

Le lundi 04 février 2013 à 08:19 -0400, Simon Urbanek a écrit :

On Feb 4, 2013, at 6:33 AM, Spencer Graves wrote:


On 2/3/2013 11:21 PM, Pascal Oettli wrote:

Hello,

Do you have a 64-bit version of Java?

rJava says to you:
call: stop(No CurrentVersion entry in ', key, '! Try

re-installing Java and make sure R and Java have matching
architectures.)

Simon, have you noticed there seem to be a bug in rJava about the
missing 'key' variable? The error message would be (slightly) cleaner if
the stop() call succeeded, wouldn't it? ;-)


  A subtle bug which only appears with the 64-bit but not the 32-bit 
version ... ?


Just a subtle bug in the error message if there is no Java installed (has 
nothing to do with the architecture). Now fixed.



  Great.  How can I get the new version?  [If it were on R-Forge, I 
could get it via install.packages(rJava, 
repos=http://R-Forge.R-project.org;).]



  Thanks,
  Spencer


Cheers,
Simon



  I agree:  Thanks very much for your work.  Spencer


Thanks for your work


  I think I probably have a 32-bit version and not a 64-bit,

because it works with 32-bit R but not 64-bit R.

  Is it feasible to have both installed in a way that allows the

each version of R to select its own version of Java?

Yes, that is the default. 32-bit R will only see 32-bit Java and vice
versa, because Windows separates 32-bit and 64-bit registries.



  A comment on stackoverflow suggests that may not be easy

(http://stackoverflow.com/questions/5272216/is-it-possible-to-install-both-32bit-and-64bit-java-on-windows-7).
Ehm, it says Yes, it is absolutely no problem.  -- which part of it
suggests it's not easy? SO is a good source of rumors, seldom facts --
but in this case it's not too far from the truth.

Cheers,
Simon



  Thanks,
  Spencer


Regards,
Pascal


Le 04/02/2013 14:27, Spencer Graves a écrit :

Hello:


   rJava works for me under 32-bit but under not 64-bit R; see below.


   Suggestions?
   Thanks,
   Spencer



library(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/namespace load failed for 'rJava'

sessionInfo()

R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics  grDevices utils datasets  methods base
##



library(rJava)
sessionInfo()

R version 2.15.2 (2012-10-26)
Platform: i386-w64-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics  grDevices utils datasets  methods base

other attached packages:
[1] rJava_0.9-3


__
R-help@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.


--
Spencer Graves, PE, PhD
President and Chief Technology Officer
Structure Inspection and Monitoring, Inc.
751 Emerson Ct.
San José, CA 95126
ph:  408-655-4567
web:  www.structuremonitoring.com

__
R-help@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.


Re: [R] rJava works with 32-bit but not 64

2013-02-04 Thread Simon Urbanek

On Feb 4, 2013, at 7:14 PM, Spencer Graves wrote:

 On 2/4/2013 7:03 AM, Simon Urbanek wrote:
 On Feb 4, 2013, at 10:27 AM, Spencer Graves wrote:
 
 On 2/4/2013 5:22 AM, Milan Bouchet-Valat wrote:
 Le lundi 04 février 2013 à 08:19 -0400, Simon Urbanek a écrit :
 On Feb 4, 2013, at 6:33 AM, Spencer Graves wrote:
 
 On 2/3/2013 11:21 PM, Pascal Oettli wrote:
 Hello,
 
 Do you have a 64-bit version of Java?
 
 rJava says to you:
 call: stop(No CurrentVersion entry in ', key, '! Try
 re-installing Java and make sure R and Java have matching
 architectures.)
 Simon, have you noticed there seem to be a bug in rJava about the
 missing 'key' variable? The error message would be (slightly) cleaner if
 the stop() call succeeded, wouldn't it? ;-)
 
  A subtle bug which only appears with the 64-bit but not the 32-bit 
 version ... ?
 
 Just a subtle bug in the error message if there is no Java installed (has 
 nothing to do with the architecture). Now fixed.
 
 
  Great.  How can I get the new version?  [If it were on R-Forge, I could 
 get it via install.packages(rJava, repos=http://R-Forge.R-project.org;).]
 

You got it almost right - it's slightly shorter than that:

install.packages(rJava,, http://RForge.net;)

but you know that if you ever looked at the rJava page ;)

Cheers,
Simon


 
  Thanks,
  Spencer
 
 Cheers,
 Simon
 
 
  I agree:  Thanks very much for your work.  Spencer
 
 Thanks for your work
 
  I think I probably have a 32-bit version and not a 64-bit,
 because it works with 32-bit R but not 64-bit R.
  Is it feasible to have both installed in a way that allows the
 each version of R to select its own version of Java?
 
 Yes, that is the default. 32-bit R will only see 32-bit Java and vice
 versa, because Windows separates 32-bit and 64-bit registries.
 
 
  A comment on stackoverflow suggests that may not be easy
 (http://stackoverflow.com/questions/5272216/is-it-possible-to-install-both-32bit-and-64bit-java-on-windows-7).
 Ehm, it says Yes, it is absolutely no problem.  -- which part of it
 suggests it's not easy? SO is a good source of rumors, seldom facts --
 but in this case it's not too far from the truth.
 
 Cheers,
 Simon
 
 
  Thanks,
  Spencer
 
 Regards,
 Pascal
 
 
 Le 04/02/2013 14:27, Spencer Graves a écrit :
 Hello:
 
 
   rJava works for me under 32-bit but under not 64-bit R; see 
 below.
 
 
   Suggestions?
   Thanks,
   Spencer
 
 
 library(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/namespace load failed for 'rJava'
 sessionInfo()
 R version 2.15.2 (2012-10-26)
 Platform: x86_64-w64-mingw32/x64 (64-bit)
 
 locale:
 [1] LC_COLLATE=English_United States.1252
 [2] LC_CTYPE=English_United States.1252
 [3] LC_MONETARY=English_United States.1252
 [4] LC_NUMERIC=C
 [5] LC_TIME=English_United States.1252
 
 attached base packages:
 [1] stats graphics  grDevices utils datasets  methods base
 ##
 
 
 library(rJava)
 sessionInfo()
 R version 2.15.2 (2012-10-26)
 Platform: i386-w64-mingw32/i386 (32-bit)
 
 locale:
 [1] LC_COLLATE=English_United States.1252
 [2] LC_CTYPE=English_United States.1252
 [3] LC_MONETARY=English_United States.1252
 [4] LC_NUMERIC=C
 [5] LC_TIME=English_United States.1252
 
 attached base packages:
 [1] stats graphics  grDevices utils datasets  methods base
 
 other attached packages:
 [1] rJava_0.9-3
 
 __
 R-help@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.
 
 

__
R-help@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.


Re: [R] rJava works with 32-bit but not 64

2013-02-03 Thread Pascal Oettli

Hello,

Do you have a 64-bit version of Java?

rJava says to you:
call: stop(No CurrentVersion entry in ', key, '! Try re-installing 
Java and make sure R and Java have matching architectures.)


Regards,
Pascal


Le 04/02/2013 14:27, Spencer Graves a écrit :

Hello:


   rJava works for me under 32-bit but under not 64-bit R; see below.


   Suggestions?
   Thanks,
   Spencer


  library(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/namespace load failed for 'rJava'
  sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics  grDevices utils datasets  methods base
 

##


  library(rJava)
  sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: i386-w64-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics  grDevices utils datasets  methods base

other attached packages:
[1] rJava_0.9-3




__
R-help@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.