Changes between Version 16 and Version 17 of udg/ecoms/RPackage/prerequisites


Ignore:
Timestamp:
Jan 19, 2016 3:07:24 PM (7 years ago)
Author:
gutierjm
Comment:

--

Legend:

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

    v16 v17  
    11= JRE Installation
    22
    3 Installation of the Java Platform, Standard Edition Runtime Environment (JRE), allows you to run Java programs on your PC and as you browse the Internet. The `ecomsUDG.Raccess` package needs the JRE in order to use the powerful capabilities of the [http://www.unidata.ucar.edu/downloads/netcdf/netcdf-java-4/index.jsp netCDF Java Library].
     3Installation of the Java Platform, Standard Edition Runtime Environment (JRE), allows you to run Java programs on your PC and as you browse the Internet. The `rJava` package used by ` loadeR` and `loadeR.ECOMS` packages needs JRE in order to use the powerful capabilities of the [http://www.unidata.ucar.edu/downloads/netcdf/netcdf-java-4/index.jsp netCDF Java Library].
    44
    55It is very likely that JRE is already installed on your computer, but just in case it is not, here are some instructions on how to get it.
     
    2323= Installing the `rJava` package
    2424
    25 [http://cran.r-project.org/web/packages/rJava/index.html rJava] is a R package providing a low-level interface to Java from R. If Java is installed and adequately configured in your computer, the `rJava` package will be automatically downloaded if not present when installing the `ecomsUDG.Raccess` package, as any other package dependency.
     25[http://cran.r-project.org/web/packages/rJava/index.html rJava] is a R package providing a low-level interface to Java from R. If Java is installed and adequately configured in your computer, the `rJava` package will be automatically downloaded if not present when installing the `loadR` package, as any other package dependency.
    2626
    2727Therefore, in principle you should not worry about this and could skip this section. But just in case something related to `rJava` goes wrong during the installation, please bear in mind the following information:
     
    4949=== Mac OS X
    5050
    51 Mac OS X comes with Java pre-installed, so everything should ‘just work’.
    52 
    53 But if you are having problems with newly installed Java version please take a look to this:
     51Mac OS X comes with Java pre-installed, but sometimes an old version (~1.6) is used by the system, even if a new version is installed as described in the previous section. In this case, the problem is changing the default Java version to be used by R (or RStudio) to a newer one. You can check the version which is used in an R session by
     52{{{
     53#!text/R
     54> library(rJava)
     55> .jinit()
     56> .jcall("java/lang/System", "S", "getProperty", "java.runtime.version")
     57}}}
     58If you are having problems with newly installed Java version please take a look to this:
    5459[http://stackoverflow.com/questions/26948777/how-can-i-make-rjava-use-the-newer-version-of-java-on-osx]
    5560
    56 and this:
     61In some cases, the problem is fixed for R but not for RStudio. In this situation, opening RStudio from the terminal may solve the problem.
     62{{{
     63user$ /Applications/RStudio.app/Contents/MacOS/RStudio
     64}}}
     65
     66Take a look also at the following link:
    5767[https://support.rstudio.com/hc/communities/public/questions/200650933-rJava-fails-to-load-in-RStudio-Desktop-OS-X]
    5868=== Windows