Changes between Version 10 and Version 11 of udg/ecoms/RPackage/prerequisites


Ignore:
Timestamp:
May 17, 2015 12:22:30 PM (7 years ago)
Author:
antonio
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • udg/ecoms/RPackage/prerequisites

    v10 v11  
    3131{{{
    3232#!text/R
    33 > install.packages(“rJava”
     33> install.packages("rJava"
    3434}}}
    3535
    3636
    37 === Linux users
     37=== Linux
    3838
    3939Linux users can alternatively use the ''apt-get'' choice from the terminal:
     
    4747You 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.
    4848
    49 === Windows / Mac
     49=== Mac OS X
    5050
    5151Mac OS X comes with Java pre-installed, so everything should ‘just work’.
    5252
     53=== Windows
     54
    5355For 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
     57If an error likes this one appears on your `R` console:
     58{{{
     59Error : .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
     64Error : package 'rJava' could not be loaded
     65}}}
     66
     67
     68it can be due to a misconfiguration of `JAVA_HOME` environment variable.
     69
     70Please 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
     78You 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
    5488
    5589