RWeka - J48 Function In R 3.3.0 - r

I am working on a churn project and came across a J48 tree function. The asked packages were RWeka and party. But when I am loading library(RWeka), I am getting an error
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/joe.main/Documents/R/win-library/3.3/rJava/libs/i386/rJava.dll':
LoadLibrary failure: The specified module could not be found.
In addition: Warning message:
package ‘RWeka’ was built under R version 3.3.1
Error: package or namespace load failed for ‘RWeka’
Any workaround for this issue?

It was an issue of JAVA_HOME> It worked once I removed it from the Path in Environmental Variables

Related

How do I fix this error of library(copula) with R?

library(copula)
I think I have installed the package copula with R. I can see it in installed packages. But when I try to use it, it gives the error below. I don't understand this. What should I do to make it right?
Error: package or namespace load failed for ‘copula’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'D:/R-4.0.0/library/gsl/libs/x64/gsl.dll':
LoadLibrary failure: The specified procedure could not be found.
In addition: Warning message:
package ‘copula’ was built under R version 4.0.3

Unable to load RWeka package

I have tried adding the path in the terminal using the solution given here and it said was successfully added but still I am unable to load the RWeka package.
It is giving me the below error -
Error: package or namespace load failed for ‘RWeka’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/rJava/libs/rJava.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.0/Resources/library/rJava/libs/rJava.so, 6): Symbol not found: _EXTPTR_PTR
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/rJava/libs/rJava.so
Expected in: /Library/Frameworks/R.framework/Resources/lib/libR.dylib
in /Library/Frameworks/R.framework/Versions/4.0/Resources/library/rJava/libs/rJava.so
In addition: Warning message:
package ‘RWeka’ was built under R version 4.0.2
What could be done? Please Help!

package or namespace load failed when trying to load 'stats' package in R

I have been trying to work with a git repository and my R 3.6.3 keeps giving me error messages. I have tried reinstalling both R and the stats package, installing Rtools, copying the stats directory from the R folder in other clients but none of seem to be working. The stats package is still found among my packages but R keeps failing to load the .dll file.
The exact error I get is:
Error message: Error: package or namespace load failed for ‘stats’ in inDL(x, as.logical(local), as.logical(now), ...): unable to load shared object 'C:/Program Files/R/R-3.6.3/library/stats/libs/x64/stats.dll': LoadLibrary failure: The specified module could not be found. During startup - Warning message: package ‘stats’ in options("defaultPackages") was not found Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object 'C:/Program Files/R/R-3.6.3/library/stats/libs/x64/stats.dll':

Can't load any packages in RStudio

I'm very new to R and I'm having problems right off the bat. None of the packages want to load and each time I try, the same error message is being given (see below). What am I doing wrong? Thanks in advance for any help!
library(xlsx)
Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry
Error: package ‘rJava’ could not be loaded
I have since added JAVA_HOME to my environmental variables but now when I attempt to load a package, a new error pops up (See Below)
library(xlsx)
Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/Sam/Documents/R/win-library/3.3/rJava/libs/x64/rJava.dll':
LoadLibrary failure: %1 is not a valid Win32 application.
Error: package ‘rJava’ could not be loaded

cannot load R package 'tm.plugin.webmining'

I'm using x64 windows 7 and R i386 3.1.1
I installed 'tm.plugin.webmining' package. but when I load this package using
library(tm.plugin.webming)
flowing error occure:
Error : .onLoad is failed at loadNamespace() because of 'rJava':
Call: inDL(x, as.logical(local), as.logical(now), ...)
Error: Cannot load 'C:/Program Files/R/R-3.1.1/library/rJava/libs/i386/rJava.dll':
LoadLibrary failure: Cannot find the module.
I already installed latest jvm. But it doesn't work.
try setting the Java_Home path on R
Sys.setenv(JAVA_HOME="path/java/home")
ie
Sys.setenv(JAVA_HOME=C:/Program Files/Java/jdk1.8.0_05/bin")

Resources