Ott Toomet
Ott Toomet

Reputation: 1956

How to find which compiler was used to compile R

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...

Upvotes: 7

Views: 2065

Answers (1)

G. Grothendieck
G. Grothendieck

Reputation: 270010

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.

Upvotes: 10

Related Questions