Could not install RWeka package on R

Duy Bui picture Duy Bui · Jul 15, 2015 · Viewed 10k times · Source

I tried different ways to install RWeka package on R but could not find any success.

I could not install RWeka though trying different methods:

1. Install normally

install.packages("RWeka")
cannot open compressed file 'RWekajars/DESCRIPTION', probable reason 'No such file or directory'

2. Install from URL

install.packages("devtools")
require(devtools)
install_url("http://cran.r-project.org/bin/windows/contrib/3.2/RWeka_0.4-24.zip")
Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : 
  cannot open the connection

3. Install from local (after downloading the zip file and place it into a directory)

install_local("RWeka_0.4-24.zip")
ERROR: installing binary package failed
* removing 'C:/Program Files/R/R-3.2.0/library/RWeka'

Could somebody help me with this? Many thanks

Answer

Adriano Rivolli picture Adriano Rivolli · Jul 29, 2016

I had the same error. After I run the javareconf comand in the Ubuntu:

sudo R CMD javareconf
...

sudo R 
> install.packages("RWeka")

I tried to install again and it works for me.