5

Is there an easy way to figure out the compiler used to compile R? Something like

$ R CMD which_compiler_was_used
GCC

Or from inside of R

> Sys.compiler()
[1] "GCC"

I know R CMD SHLIB somehow does the magic...

Ott Toomet
  • 1,894
  • 15
  • 25

1 Answers1

8

Try this:

R CMD config CC

When I try it I get this:

gcc -m64

Note: Issue the R CMD config command without CC to find out about other information that it can provide.

G. Grothendieck
  • 254,981
  • 17
  • 203
  • 341