-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem setting up r-causal #73
Comments
This message also came as part of the problem: JavaVM: requested Java version ((null)) not available. Using Java at "" instead. |
Update: I install the Java for OS X 2014-001 , which seemed to solve the problem of the rJava installation. I repeat all the installation process with shows no errors. I try the example for fgs continuous but get the next error: library(rcausal) |
Thanks. I made the adjustments, and go this error: Error in .jnew("edu/cmu/tetrad/data/ContinuousVariable", nodname) : |
@kingfish777 java version "1.8.0_111" |
|
I followed the instruction, but using Oracle jdk 9.0.1. The most recent available in the website (couldn't find older versions) I am using the website example, changing fgs, for ages library(rcausal) #Compute FGES search And got the next error: Error in .jnew("edu/cmu/tetrad/data/ContinuousVariable", nodname) : |
Could it be something about the new dataloaders ? |
Have you restarted your R session? Also, try a reboot and go through same process. Another thing that sometimes works is to remove rJava and rcausal and perform a fresh reinstall. |
So, I restarted the R version and that did not help. There is no archived versions for the website, so I couldn't recover the instructions. How should I purge rJava and rcausal ? thanks |
To remove/purge:
But fiRst, anotheR diRty tRick: https://stackoverflow.com/questions/6979917/how-to-unload-a-package-without-restarting-r put this into a file, say charityFges.R:
Next, do this on the command line: |
There are rJava tips and tricks at the bottom: |
Thanks. I will try all these and write back when I make it work. Need to leave this for a moment. Thanks again for the help. |
rcausal.tar.gz
|
Thanks. Because I keep getting the same error:
Error in .jnew("edu/cmu/tetrad/data/ContinuousVariable", nodname) :
java.lang.UnsupportedClassVersionError:
edu/cmu/tetrad/data/ContinuousVariable : Unsupported major.minor version
52.0
Do you know what is this error about ?
…On Fri, Nov 17, 2017 at 4:21 PM, Kingfish Threesevens < ***@***.***> wrote:
rcausal.tar.gz
<https://github.com/bd2kccd/r-causal/files/1483880/rcausal.tar.gz>
I have attached my local rcausal.
To install, you can
R
install.packages("rcausal.tar.gz")
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#73 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXWXj5GDkKVD14bow3XJmoSZhwoTTgehks5s3fi_gaJpZM4QiZ0j>
.
|
Ah, yes, I think that it may have something to do with the version of Java that was used to compile the version of tetrad-lib that is included in r-causal and some conflict with the version of java that is present in the rJava config (from R CMD javareconf). That is what comes up when I jog my memory about it. I was able to fix it once locally with that problem by dropping in a compatible version of tetrad-lib into a local r-causal installation. |
@chirayukong
Hi, this problem came from Peter Spirtes, through the Helpdesk:
I tried to follow the instructions for using r-causal but I could not get it to work.
install.packages("stringr")
install.packages("rJava”)
library(devtools)
install_github("bd2kccd/r-causal")
Downloading GitHub repo bd2kccd/r-causal@master
from URL https://api.github.com/repos/bd2kccd/r-causal/zipball/master
Installing rcausal
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet CMD
INSTALL
'/private/var/folders/ph/2js0sw_j4sd01tbfb72gm5hw0000gp/T/RtmpZOcbT1/devtools1e22f624572/bd2kccd-r-causal-7c5be55'
--library='/Library/Frameworks/R.framework/Versions/3.4/Resources/library' --install-tests
** R
** data
** inst
** preparing package for lazy loading
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so, 6): Library not loaded: @rpath/libjvm.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so
Reason: image not found
ERROR: lazy loading failed for package ‘rcausal’
Installation failed: Command failed (1)
In addition, when I tried to add the libraries “rJava” using the library command, it said it couldn’t find it.
The text was updated successfully, but these errors were encountered: