I am running R on Windows XP
I first tried to install rJava and got this message
utils:::menuInstallLocal()
package 'rJava' successfully unpacked and MD5 sums checked
updating HTML package descriptions
then i tried this
require(rJava)
Loading required package: rJava
Error in if (!nchar(javahome)) stop("JAVA_HOME is not set and could not be
determined from the registry") :
argument is of length zero
Error : .onLoad failed in 'loadNamespace' for 'rJava'
Not yet realizing I didn't have Java installed, I instead tried to
reinstall the package rJava and got this:
utils:::menuInstallLocal()
package 'rJava' successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package 'rJava'
updating HTML package descriptions
I finally realized I didn't have Java installed on my computer, so I
downloaded Java and tested that it works.
I then attempted to reinstall rJava and load the package, but got this;
utils:::menuInstallLocal()
package 'rJava' successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package 'rJava'
updating HTML package descriptions
require(rJava)
Loading required package: rJava
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE,
logical.return = TRUE, :
there is no package called 'rJava'
What do I need to do? rJava is not in the library even though the
warning message indicates there is a prior installation of rJava
Thanks for your help
JK
[[alternative HTML version deleted]]