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. |
26 | | |
27 | | Therefore, 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: |
28 | | |
29 | | Once Java is installed in your machine, in most cases the following call from R should do the trick: |
30 | | |
| 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. `rJava` can be also installed directly by: |
| 31 | Once `rJava` is installed, you may want to know the characteristics of the java version used by R: |
| 32 | {{{#!text/R |
| 33 | library(rJava) |
| 34 | .jinit() |
| 35 | [1] 0 |
| 36 | .jcall("java/lang/System", "S", "getProperty", "java.vendor") |
| 37 | [1] "Oracle Corporation" |
| 38 | .jcall("java/lang/System", "S", "getProperty", "java.runtime.version") |
| 39 | [1] "1.7.0-b147" |
| 40 | .jcall("java/lang/System", "S", "getProperty", "os.arch") |
| 41 | [1] "x86" |
| 42 | }}} |
| 43 | |
| 44 | |
| 45 | Therefore, 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: |
123 | | |
124 | | = Find out the java version used by R |
125 | | |
126 | | Once `rJava` is installed, you may want to know the characteristics of the java version used by R: |
127 | | |
128 | | {{{#!text/R |
129 | | library(rJava) |
130 | | .jinit() |
131 | | [1] 0 |
132 | | .jcall("java/lang/System", "S", "getProperty", "java.vendor") |
133 | | [1] "Oracle Corporation" |
134 | | .jcall("java/lang/System", "S", "getProperty", "java.runtime.version") |
135 | | [1] "1.7.0-b147" |
136 | | .jcall("java/lang/System", "S", "getProperty", "os.arch") |
137 | | [1] "x86" |
138 | | }}} |