Is it possible to make appveyor use a 64-bit version of R?

Robert Link's Avatar

Robert Link

21 Sep, 2017 07:32 PM

When testing my R package, I get the following error when R tries to load the rJava package:

  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/appveyor/AppData/Local/Temp/1/RtmpWa3KNC/RLIBS_bdc2913935/rJava/libs/i386/rJava.dll':
    LoadLibrary failure:  %1 is not a valid Win32 application.
As far as I can tell, this kind of error is typically caused by running a 32-bit version of R (apparently rJava only supports 64-bit). Indeed, the version of R being used here seems to be 32-bit:
* using log directory 'C:/projects/iamrpt/iamrpt.Rcheck'
* using R version 3.4.1 Patched (2017-09-16 r73293)
* using platform: i386-w64-mingw32 (32-bit)
Is there any way to make the system use a 64-bit version of R? I have tried setting Platform: x64 in my configuration, but this does not seem to have done the trick:
[00:00:45] R version 3.4.1 Patched (2017-09-16 r73293)
[00:00:45] Platform: i386-w64-mingw32/i386 (32-bit)
[00:00:45] Running under: Windows Server 2012 R2 x64 (build 9600)
I read this as saying the build is running on a 64-bit host system, but is still using the 32-bit version of R. Is that correct?

If anyone has some advice on how to force the R installation to be 64-bit, my team and I would appreciate it. As it stands, we've had to disable windows builds in our testing, which isn't ideal.

  1. 1 Posted by Robert Link on 22 Sep, 2017 05:51 PM

    Robert Link's Avatar

    Hello? Did this question get posted? It doesn't show up on the main page.

  2. Support Staff 2 Posted by Ilya Finkelshte... on 22 Sep, 2017 07:14 PM

    Ilya Finkelshteyn's Avatar

    I manually made it visible because it was in pending state. You probably needed to click some link in email to complete posting.

    Anyway, we do not have R installed on our VMs. You can install it on the fly like this:

    - appveyor downloadfile
    - R-3.4.0-win.exe /silent

    Or enter the same command at Install stage in UI (if you do not use YAML). After that you will have it at %programfiles%\R\R-3.4.0\bin\x64.

    The same way you can install other R tools if you need them. I found good article on the silent installation of R components here .

    Also note that it is very handy to use RDP for initial debugging of build scripts.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

22 Oct, 2017 04:20 AM
21 Oct, 2017 07:26 PM
21 Oct, 2017 10:08 AM
21 Oct, 2017 07:59 AM
21 Oct, 2017 01:48 AM