Skip to content

[R-pkg-devel] [BULK] Re: [Rd] "not a valid win32 application" with rtools40-x86_65.exe on Windows 10

2 messages · Spencer Graves, Uwe Ligges

#
Hi, Simon et al.


[changing to "R-package-devel, because I've heard complaints that this 
may not be appropriate for R-devel.]


 ????? I'm still having problems.? I found that I had Java twice in the 
path and deleted both versions (~\AdoptOpenJDK\jdk-11.0.6.10-hotspot\bin 
and ~Java\jre1.8.0_241). That seemed not to change anything as far as I 
can tell.


 ????? I have both directories for both "~Rtools" and "~rtools40", and 
the path includes "~rtools40\bin".? When running R4.0.0 within RStudio, 
"install.package('rJava', type='source', INSTALL_opts = 
'--merge-multiarch') complained, "WARNING:? Rtools is required ... but 
no version compatible ... was found.? Note that the following 
incompatible versions(s) ... were found:? - Rtools 3.5".? When I run r 
in a CMD prompt, I don't get that warning.? However, both complain,


 ????? warning in system("sh ./configure.win") : 'sh' not found


 ????? When I tried "install.packages('rJava')", it seemed to work OK 
(though I still got the complaint from R within RStudio that it could 
not find rtools40).


 ????? And my primary problem is unchanged:? "R CMD check 
Ecfun_0.2-4.tar.gz" ends with the following:


Error:? package or namespace load failed for 'Ecfun':
 ? .onLoad failed in loadNamespace() for 'rJava', details
 ?? call: inDL(x, as.logical(local), as.logical(now), ...)
 ?? error:? unable to load shared object 'c:/Program
Files/R/R-4.0.0/library/rJava/libs/i386/rJava.dll':
 ?? LoadLibrary failure: ^1 is not a valid win32 application


 ????? The same package on my Mac quits with a LaTeX error I have yet to 
figure out how to fix.


 ????? Suggestions?
 ????? Thanks,
 ????? Spencer Graves


00install.out:


* installing *source* package 'Ecfun' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
*** arch - i386
Error: package or namespace load failed for 'Ecfun':
 ?.onLoad failed in loadNamespace() for 'rJava', details:
 ? call: inDL(x, as.logical(local), as.logical(now), ...)
 ? error: unable to load shared object 'C:/Program 
Files/R/R-4.0.0/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 'C:/Users/spenc/Documents/R/Ecfun/Ecfun.Rcheck/Ecfun'
On 2020-05-02 02:20, Simon Urbanek wrote:
#
Spencer, I guess you have 64 bit components on the path before the new 
toolchain is found.

Also  check at first if you can load rJava both under 32-bit RGui and 
64-bit RGui.

If this does not help: Can you send me privately the full output (i.e. 
including check.log and also install.out file)?

Best,
Uwe
On 12.05.2020 08:55, Spencer Graves wrote: