Fail on appveyor when tying to install tibble

I am building an R-package and have set up GitHub with Travis and Appveyor using the use_this package. Travis runs fine and the build is passing, but Appveyor fails when trying to install 'tibble'.

The package runs without problems on my computer (Windows 10).

I have no idea how to solve this, or even if it needs to be solved.

Any advice is much appreciated.

Output from Appveyor

    * installing *source* package 'tibble' ...
    ** package 'tibble' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    *** arch - i386
    c:/Rtools/mingw_32/bin/gcc  -I"c:/R/include" -DNDEBUG -std=gnu99         -O3 -Wall  -std=gnu99 -mtune=generic -c coerce.c -o coerce.o
    /bin/sh: c:/Rtools/mingw_32/bin/gcc: No such file or directory
    make: *** [coerce.o] Error 127
    ERROR: compilation failed for package 'tibble'
    * removing 'c:/RLibrary/tibble'
    Error in i.p(...) : 
      (converted from warning) installation of package 'tibble' had non-zero exit status
    Calls: <Anonymous> ... with_rprofile_user -> with_envvar -> force -> force -> i.p
    Execution halted
    Command exited with code 1
    7z a *.Rcheck\*

I managed to solve it. It was because Appveyor was missing Rtools in its build.

In the file appveyor.yml there is a line:

# USE_RTOOLS: true

Remove the comment out so it says


Now it builds without errors.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.