#rJava

Egor Kotov ๐ŸŒ๐Ÿƒโ€โ™‚๏ธ๐ŸšŠ๐Ÿš‹๐Ÿš™EgorKotov@datasci.social
2024-06-27

Here's a brief overview the landscape of Java-dependent R packages and user issues with them (solution is rJavaEnv): ekotov.pro/rJavaEnv/articles/w

Getting issues with Java, because one or more of you R packages depend on it? If you see your package on the list (see attached pic), rJavaEnv is here to help you to install Java properly with one command. Even if you are just reading xlsx files with xlsx package (though you probably should switch to readxl...), you may be affected.

#rstats #rJava #Java

Top 20 Java dependent R packages including xlsx r5r RJDBC mailR and many more
Egor Kotov ๐ŸŒ๐Ÿƒโ€โ™‚๏ธ๐ŸšŠ๐Ÿš‹๐Ÿš™EgorKotov@datasci.social
2024-05-31

3/ ๐Ÿ“ฆ Install the development version from GitHub:
devtools::install_github("e-kotov/rJavaEnv")
Quick setup in one line:
rJavaEnv::java_quick_install(version = 21)
This installs Java 21 in your project, updates JAVA_HOME, and sets up your environment variables! #Java #rJava

Egor Kotov ๐ŸŒ๐Ÿƒโ€โ™‚๏ธ๐ŸšŠ๐Ÿš‹๐Ÿš™EgorKotov@datasci.social
2024-05-31

๐Ÿš€ Introducing rJavaEnv: A new R package to manage multiple Java JDKs for your R projects! ๐ŸŽ‰
github.com/e-kotov/rJavaEnv

#rstats #gischat #rspatial #rJava

Using #r5r and #OpenTripPlanner, or another rJava/Java dependent package, this tool for you!

Thread ๐Ÿงต๐Ÿ‘‡

2023-07-06

Can any #rstats friends have an apple #M1 (or M2) and might be able to advise using #rJava ? I cannot seem to load packages that worked fine on my intel based Mac. I think part of the problem is it is looking in the wrong place for Java? and the incompatible architecture... #coding

> library(rJava)
Error: package or namespace load failed for โ€˜rJavaโ€™:
 .onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(jli, FALSE)
  error: unable to load shared object '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib':
  dlopen(/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib, 0x000A): tried: '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib' (no such file), '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst