-
Notifications
You must be signed in to change notification settings - Fork 6
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
Error: Loading openVA using R and RScript #32
Comments
All the commands work for me on both an M1 and M2 mac that I have, with R 4.2.1 and 4.3.0. So I cannot reproduce the error. If the issue is with InSilicoVA, maybe check if you can run R -e "library(rJava)" in case the issue you experience is with rJava package. Otherwise it might be a issue with your system setup. |
Thanks for looking into this! Looks like Do you remember which version of java you have and how you installed it? I usually use |
I have the following:
Setting up R with Java sometimes require a bit of manual fiddling with the system set up. I don't think I did anything more complicated than |
Update - I have a different java version installed with Homebrew: % java --version
openjdk 20.0.1 2023-04-18
OpenJDK Runtime Environment Homebrew (build 20.0.1)
OpenJDK 64-Bit Server VM Homebrew (build 20.0.1, mixed mode, sharing) I will try a different version of java and see if this still occurs. |
I retried with OpenJDK 17 install using Homebrew ( I will look into the |
When I load
openVA
using R in a command line terminal, the R session is immediately killed.Working Example (Expected Behaviour)
This will work in RStudio without any problems, loading the
openVA
package.library(openVA)
Not Working Example (Unexpected Behaviour)
However, in a terminal, this will not work:
R -e "library(openVA)"
Neither will this (assuming the contents of
run.R
only haslibrary(openVA)
on the first line:In all cases above, a message stating
killed R
will occur immediately.Suspicion
It seems like
InSilicoVA
is the culprit, as the following does work:But this does not:
R -e "library(InSilicoVA)"
Use Case
I am hoping to run scheduled CRON jobs to code VA records in a scheduled manner - thus needing to run openVA via the
Rscript
orR
commands in the terminal.System Specs
The text was updated successfully, but these errors were encountered: