trinker / qdap

Quantitative Discourse Analysis Package: Bridging the gap between qualitative data and quantitative analysis
http://cran.us.r-project.org/web/packages/qdap/index.html
175 stars 44 forks source link

qdap doesn't run on 64 bit R #186

Closed hanowell closed 10 years ago

hanowell commented 10 years ago

I installed qdap a while back and it runs fine on 32 bit R. For some reason, this is what happens when I try to load it in 64 bit R:

library(qdap)
Loading required package: ggplot2  
Find out what's changed in ggplot2 with
news(Version == "0.9.3.1", package = "ggplot2")
Loading required package: qdapDictionaries 
Loading required package: RColorBrewer
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java    and make sure R and Java have matching architectures.
In addition: Warning messages:
1: package ‘qdap’ was built under R version 3.0.3 
2: package ‘qdapDictionaries’ was built under R version 3.0.3 
Error: package or namespace load failed for ‘qdap’

When I try to call a qdap function, such as polarity in 64 bit R, R cannot find the function.

More recently, I tried to reinstall the package and here is what happened:

install.packages("qdap") also installing the dependencies ‘qdapDictionaries’, ‘qdapTools’

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/qdapDictionaries_1.0.1.zip' Content type 'application/zip' length 3051358 bytes (2.9 Mb) opened URL downloaded 2.9 Mb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/qdapTools_1.0.1.zip' Content type 'application/zip' length 70821 bytes (69 Kb) opened URL downloaded 69 Kb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/qdap_2.0.0.zip' Content type 'application/zip' length 3631270 bytes (3.5 Mb) opened URL downloaded 3.5 Mb

package ‘qdapDictionaries’ successfully unpacked and MD5 sums checked package ‘qdapTools’ successfully unpacked and MD5 sums checked package ‘qdap’ successfully unpacked and MD5 sums checked Warning in install.packages : cannot remove prior installation of package ‘qdap’

The downloaded binary packages are in C:\Users\benjamin.hanowell\AppData\Local\Temp\Rtmp0Amzhc\downloaded_packages

And when I tried to load the package, it could not be found.

Then I tried installing from dev version from github and here is what happened:

library(devtools)

Attaching package: ‘devtools’

The following objects are masked from ‘package:utils’:

?, help

The following object is masked from ‘package:base’:

system.file

Warning message: package ‘devtools’ was built under R version 3.0.3

install_github("qdap") Installing github repo qdap/master from hadley Downloading master.zip from https://github.com/hadley/qdap/archive/master.zip Error in (function (url, name = NULL, subdir = NULL, config = list(), : client error: (404) Not Found install_github("trinker/rep/qdap") Installing github repo rep/master from trinker Downloading master.zip from https://github.com/trinker/rep/archive/master.zip Error in (function (url, name = NULL, subdir = NULL, config = list(), : client error: (404) Not Found install_github("trinker/repo/qdap") Installing github repo repo/master from trinker Downloading master.zip from https://github.com/trinker/repo/archive/master.zip Error in (function (url, name = NULL, subdir = NULL, config = list(), : client error: (404) Not Found install_github("trinker/qdap") Installing github repo qdap/master from trinker Downloading master.zip from https://github.com/trinker/qdap/archive/master.zip Installing package from C:\Users\BENJAM~1.HAN\AppData\Local\Temp\Rtmp0Amzhc/master.zip Installing qdap Installing dependencies for qdap: qdapDictionaries, qdapTools, english, koRpus, lda, proxy, SnowballC trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/qdapDictionaries_1.0.1.zip' Content type 'application/zip' length 3051358 bytes (2.9 Mb) opened URL downloaded 2.9 Mb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/qdapTools_1.0.1.zip' Content type 'application/zip' length 70821 bytes (69 Kb) opened URL downloaded 69 Kb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/english_1.0-1.zip' Content type 'application/zip' length 25960 bytes (25 Kb) opened URL downloaded 25 Kb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/koRpus_0.05-5.zip' Content type 'application/zip' length 1291127 bytes (1.2 Mb) opened URL downloaded 1.2 Mb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/lda_1.3.2.zip' Content type 'application/zip' length 458686 bytes (447 Kb) opened URL downloaded 447 Kb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/proxy_0.4-12.zip' Content type 'application/zip' length 153409 bytes (149 Kb) opened URL downloaded 149 Kb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/SnowballC_0.5.zip' Content type 'application/zip' length 186549 bytes (182 Kb) opened URL downloaded 182 Kb

package ‘qdapDictionaries’ successfully unpacked and MD5 sums checked package ‘qdapTools’ successfully unpacked and MD5 sums checked package ‘english’ successfully unpacked and MD5 sums checked package ‘koRpus’ successfully unpacked and MD5 sums checked package ‘lda’ successfully unpacked and MD5 sums checked package ‘proxy’ successfully unpacked and MD5 sums checked package ‘SnowballC’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in C:\Users\benjamin.hanowell\AppData\Local\Temp\Rtmp0Amzhc\downloaded_packages "C:/PROGRA~1/R/R-30~1.2/bin/x64/R" --vanilla CMD build \ "C:\Users\benjamin.hanowell\AppData\Local\Temp\Rtmp0Amzhc\devtools15981ef30ef\qdap-master" --no-manual --no-resave-data

trinker commented 10 years ago

You don't have the appropriate version of Java for a 64 bit machine. That means that rjava can't install and qdap fails to install. I don't have computer access so can't help much more for a few days. Google java and ya bit. The key is too get the rjava package up and running.

As far as the prior installation. Manually go to the directory where your packages are stored and manually delete qdap. Make sure there is no 00LOCK file in there.

Let me know if this works.

hanowell commented 10 years ago

Yup, that did it. Thanks.