Changes between Version 10 and Version 11 of udg/ecoms/RPackage/prerequisites
- Timestamp:
- May 17, 2015 12:22:30 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
udg/ecoms/RPackage/prerequisites
v10 v11 31 31 {{{ 32 32 #!text/R 33 > install.packages( “rJava”)33 > install.packages("rJava") 34 34 }}} 35 35 36 36 37 === Linux users37 === Linux 38 38 39 39 Linux users can alternatively use the ''apt-get'' choice from the terminal: … … 47 47 You can also find useful information about the installation and configuration of openJDK in [http://askubuntu.com/questions/98319/correct-installation-and-configuration-of-openjdk-and-r this thread] of the Ubuntu forum. 48 48 49 === Windows / Mac49 === Mac OS X 50 50 51 51 Mac OS X comes with Java pre-installed, so everything should ‘just work’. 52 52 53 === Windows 54 53 55 For Windows 7, you can find some quick advice on how to get up and running with R + rJava [http://stackoverflow.com/questions/7019912/using-the-rjava-package-on-win7-64-bit-with-r/7604469#7604469 at this link] 56 57 If an error likes this one appears on your `R` console: 58 {{{ 59 Error : .onLoad failed in loadNamespace() for 'rJava', details: 60 call: inDL(x, as.logical(local), as.logical(now), ...) 61 error: unable to load shared object 'C:/Users/antonio/Documents/R/win-library/3.2/rJava/libs/x64/rJava.dll': 62 LoadLibrary failure: %1 no es una aplicación Win32 válida. 63 64 Error : package 'rJava' could not be loaded 65 }}} 66 67 68 it can be due to a misconfiguration of `JAVA_HOME` environment variable. 69 70 Please check that the corresponfing value points to the '''correct Java version and bit architecture''' (32 or 64). 71 72 {{{ 73 #!text/R 74 > Sys.getenv("JAVA_HOME") 75 }}} 76 77 78 You can remove from system environment and restart `R` or remove from `R` sesssion: 79 {{{ 80 #!text/R 81 > if (Sys.getenv("JAVA_HOME")!="") 82 + Sys.setenv("JAVA_HOME"="") 83 }}} 84 85 86 87 54 88 55 89