Lazy-load database '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/R/rJava.rdb' is corruptġ: package ‘RWeka’ was built under R version 3.4.2Ģ: In get(Info, envir = env) : internal error -3 in R_decompress1Įrror: package or namespace load failed for ‘rJava’ in get(Info, envir = env):ġ: package ‘rJava’ was built under R version 3.4. I installed the package 'rJava' with no problems, but when I load it get a similar error (also pasted below).Įrror: package or namespace load failed for ‘RWeka’ in get(Info, envir = env): I am running OS X El Capitan and have Java 10.11.6. I am trying to use RWeka in Studio, and get this error. You'll be using NetBeans to write your code and compile it for testing. Installation of the JDK is very straightforward, and includes a development environment called NetBeans. I opened the terminal in my Mac and ran this, and got the errors in the screenshot. Installing the Java Development Kit (JDK) on your Mac will allow you to write and compile Java applications. Hey, gwinstanley, thanks for doing this! I was wondering if you could tell me where to run this (I am pretty new to Studio).
# Link JVM library to allow R to find it. JAVA_HOME= $/include/darwin -I $(dirname ' $LIBJVM ' )' ' If groups $USER | grep -q -w -v admin thenĮcho 'Please run this script using an administrator account.
# If not a Homebrew installation, check for script running under admin account. If $(which brew 2 & >/dev/null ) & $(brew unlink -dry-run r | grep ' $RP ' 2 & >/dev/null ) then # Check whether R is installed via Homebrew. >&2 echo 'Unable to find R executable please ensure it is installed correctly. # Script to configure rJava correctly on macOS.