Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RStudio can not complete the install of rlang version: rlang_1.1.5.tar.gz in Windows #1770

Closed
AndrewO2554 opened this issue Jan 20, 2025 · 1 comment

Comments

@AndrewO2554
Copy link

AndrewO2554 commented Jan 20, 2025

I am installing the package: tidyverse which includes rlang_1.1.5.tar.gz. Running the install produces teh following error:

  • installing source package 'rlang' ...
    ** package 'rlang' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    using C compiler: 'gcc (GCC) 12.4.0'
    gcc -I"C:/PROGRA1/R/R-441.2/include" -DNDEBUG -I./rlang/ -I"c:/rtools44/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c capture.c -o capture.o
    gcc -I"C:/PROGRA1/R/R-441.2/include" -DNDEBUG -I./rlang/ -I"c:/rtools44/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c internal.c -o internal.o
    gcc -I"C:/PROGRA1/R/R-441.2/include" -DNDEBUG -I./rlang/ -I"c:/rtools44/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c rlang.c -o rlang.o
    In file included from rlang/rlang.c:7,
    from rlang.c:5:
    rlang/cnd.c:95:10: fatal error: Rinterface.h: No such file or directory
    95 | #include <Rinterface.h>
    | ^~~~~~~~~~~~~~
    compilation terminated.
    make: *** [C:/PROGRA1/R/R-441.2/etc/x64/Makeconf:289: rlang.o] Error 1
    ERROR: compilation failed for package 'rlang'
  • removing 'C:/Users/ouell/AppData/Local/R/win-library/4.4/rlang'
    Warning in install.packages :
    installation of package ‘rlang’ had non-zero exit status

I investigated further and noted that the package cntains the following file: rlang\src\rlang\cnd.c which contained the following line:
#include <Rinterface.h>

This is missing in the package and if I understand, thi sis only a Linux file. I was able to comment this line out and rerun the following command successfully.

gcc -I"C:/PROGRA1/R/R-441.2/include" -DNDEBUG -I./rlang/ -I"c:/rtools44/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c rlang.c -o rlang.o

The date on this file is recent 2025-01-17 14:30 748K so it may be that this has been newly introduced.

The file is located here: https://cran.rstudio.com/src/contrib/

@lionel-
Copy link
Member

lionel- commented Jan 21, 2025

It seems like you're not set up to build packages. Do you have Rtools installed?

The Windows binaries are now up so you should be able to install from binary instead.

@lionel- lionel- closed this as completed Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants