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

Manual dev install instructions do not detect my x64 Windows system #260

Open thadguidry opened 4 years ago

thadguidry commented 4 years ago

Hi @trinker Using the following installation for dev found on the README.md:

if (!require("pacman")) install.packages("pacman")
pacman::p_load_gh(
  "trinker/qdapDictionaries",
  "trinker/qdapRegex",
  "trinker/qdapTools",
  "trinker/qdap"
)

and then getting final error output as

Rd warning: C:/Users/thadg/AppData/Local/Temp/RtmpMTVBXi/R.INSTALL4ac0630f6199/qdap/man/word_proximity.Rd:41: file link 'sqrt' in package 'base' does not exist and so has been treated as a topic
    word_stats                              html  
** building package indices
** testing if installed package can be loaded from temporary location
*** arch - i386
Error: package or namespace load failed for 'qdap':
 .onLoad failed in loadNamespace() for 'rJava', details:
  call: inDL(x, as.logical(local), as.logical(now), ...)
  error: unable to load shared object 'E:/R/R-4.0.2/library/rJava/libs/i386/rJava.dll':
  LoadLibrary failure:  %1 is not a valid Win32 application.

Error: loading failed
Execution halted
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'E:/R/R-4.0.2/library/qdap'
Warning message:
In pacman::p_load_gh("trinker/qdapDictionaries", "trinker/qdapRegex",  : 
Failed to install/load:
trinker/qdap

Verified that Console is showing arch as x86_64:

image

Verified that R 64bit is being used:

image

I have verified my Java is fine (and JAVA_HOME is set) I'm a light developer in Java:

image

And that rJava actually installed fine from RStudio and shows the paths correctly in my library folder:

image

Curious why the error during installation is trying the E:/R/R-4.0.2/library/rJava/libs/i386/rJava.dll instead of E:/R/R-4.0.2/library/rJava/libs/x64/rJava.dll ?

Maybe the install doesn't look at the arch and instead the os or something else?

thadguidry commented 4 years ago

Hmm, maybe it's a pacman issue itself detecting i386 incorrectly on my Windows 10 64bit system?

building package indices testing if installed package can be loaded from temporary location * arch - i386**** Error: package or namespace load failed for 'qdap': .onLoad failed in loadNamespace() for 'rJava', details:

Interestingly, my Rtools is installed well and I can see it on my path (last line): image

and if I go there and open bash.exe and type uname -m image