[R] Problems with installing R packages from source and running C++ in R, even on fresh R installation

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Wed Aug 30 10:37:45 CEST 2023


On Tue, 29 Aug 2023 14:41:40 +0000
Christophe Bousquet via R-help <r-help using r-project.org> wrote:

> (ii) the same issues keep coming back on my work laptop

It may be worth asking the IT department at work, just in case there is
a system to prevent unauthorised programs from running that interferes
with Rtools.

Are you comfortable using the command line? If you create a hello.c
file with the following contents:

#include <stdio.h>
int main(void) { printf("Hello world!\n"); }

...and then place it into %USERPROFILE% (C:/Users/Christophe Bousquet),
start "Rtools43 bash" from the Start menu and try the following command
line:

export PATH=/x86_64-w64-mingw32.static.posix/bin:$PATH
gcc -o hello.exe hello.c
./hello.exe

Does it say hello to you?

-- 
Best regards,
Ivan



More information about the R-help mailing list