Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is some quick advice on how to get up and running with R + rJava on Windows 7 64bit. There are several possibilities, but most have fatal flaws. Here is what worked for me:</p> <p><strong>Add jvm.dll to your PATH</strong></p> <p>rJava, the R&lt;->Java bridge, will need jvm.dll, but R will have trouble finding that DLL. It resides in a folder like</p> <pre><code>C:\Program Files\Java\jdk1.6.0_25\jre\bin\server </code></pre> <p>or </p> <pre><code>C:\Program Files\Java\jre6\jre\bin\client </code></pre> <p>Wherever yours is, add that directory to your windows PATH variable. (Windows -> "Path" -> "Edit environment variables to for your account" -> PATH -> edit the value.)</p> <p>You may already have Java on your PATH. If so you should find the client/server directory in the same Java "home" dir as the one already on your PATH.</p> <p>To be safe, make sure your architectures match.If you have Java in <code>Program Files</code>, it is 64-bit, so you ought to run R64. If you have Java in <code>Program Files (x86)</code>, that's 32-bit, so you use plain 32-bit R.</p> <p><strong>Re-launch R from the Windows Menu</strong></p> <p>If R is running, quit.</p> <p>From the Start Menu , Start R / RGUI, RStudio. This is very important, to make R pick up your PATH changes.</p> <p><strong>Install rJava 0.9.2.</strong></p> <p>Earlier versions do not work! Mirrors are not up-to-date, so go to the source at www.rforge.net: <a href="http://www.rforge.net/rJava/files/" rel="noreferrer">http://www.rforge.net/rJava/files/</a>. Note the advice there</p> <pre><code>“Please use `install.packages('rJava',,'http://www.rforge.net/')` to install.” </code></pre> <p>That is almost correct. This actually works:</p> <p><code>install.packages('rJava', .libPaths()[1], 'http://www.rforge.net/')</code></p> <p>Watch the punctuation! The mysterious “.libPaths()[1],” just tells R to install the package in the primary library directory. For some reason, leaving the value blank doesn’t work, even though it should default.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload