Skip to content

Return options used to configure R

8 messages · Tom Quarendon, Dirk Eddelbuettel, Gábor Csárdi +1 more

#
Is there any way to print out the options that where passed to configure when R was built?
I want to build a later version to the one I have on my machine, and I want to build it in the same way, with the same configure options.

Thanks.
#
A one liner that should work on most systems:

grep("configure", readLines(file.path(R.home(), "etc", "Makeconf")), value=TRUE)

Gabor

On Thu, Jan 21, 2016 at 5:38 PM, Tom Quarendon
<tom.quarendon at teamwpc.co.uk> wrote:
#
So in English what you are saying is that there's a file called Makeconf in the etc directory under the R_HOME that contains the information.
That certainly seems to be true for Linux. 
Thanks.

-----Original Message-----
From: G?bor Cs?rdi [mailto:csardi.gabor at gmail.com] 
Sent: 22 January 2016 11:37
To: Tom Quarendon <tom.quarendon at teamwpc.co.uk>
Cc: r-devel at r-project.org
Subject: Re: [Rd] Return options used to configure R

A one liner that should work on most systems:

grep("configure", readLines(file.path(R.home(), "etc", "Makeconf")), value=TRUE)

Gabor
On Thu, Jan 21, 2016 at 5:38 PM, Tom Quarendon <tom.quarendon at teamwpc.co.uk> wrote:
#
It is also true for OSX. Windows is somewhat different, take a look at
the files in R_HOME/etc.

Gabor

On Fri, Jan 22, 2016 at 11:40 AM, Tom Quarendon
<tom.quarendon at teamwpc.co.uk> wrote:
#
On 22 January 2016 at 11:40, Tom Quarendon wrote:
| So in English what you are saying is that there's a file called Makeconf in the etc directory under the R_HOME that contains the information.
| That certainly seems to be true for Linux. 

And Debian / Ubuntu have a convenience softlink to make this /etc/R/

Also note that 'R CMD config varname' extracts each of these values from the
command-line, rather than R.  And all of this is in the fine manuals you are
cordially invited to peruse at your lesiure ...

Dirk
#
I did have a search, but searching for "configure" just brought up loads of results for how to configure R.
I'm sure it is in the manual, once you know where to look for it and if you know all the manuals inside out.

Looking at the help for R CMD config, it's not actually clear that these relate to the options specified on configure, and it doesn't tell you things like --enable-R-shlib, or --prefix etc. 

Anyway, thanks for the info. The Makeconf file is what I want. At least on Linux, doesn't appear to exist on our OSX installation, but we probably installed that from a pre-built package. Ditto Windows.

-----Original Message-----
From: Dirk Eddelbuettel [mailto:edd at debian.org] 
Sent: 22 January 2016 12:07
To: Tom Quarendon <tom.quarendon at teamwpc.co.uk>
Cc: G?bor Cs?rdi <csardi.gabor at gmail.com>; r-devel at r-project.org
Subject: Re: [Rd] Return options used to configure R
On 22 January 2016 at 11:40, Tom Quarendon wrote:
| So in English what you are saying is that there's a file called Makeconf in the etc directory under the R_HOME that contains the information.
| That certainly seems to be true for Linux. 

And Debian / Ubuntu have a convenience softlink to make this /etc/R/

Also note that 'R CMD config varname' extracts each of these values from the command-line, rather than R.  And all of this is in the fine manuals you are cordially invited to peruse at your lesiure ...

Dirk

--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
#
On Fri, Jan 22, 2016 at 1:07 PM, Tom Quarendon
<tom.quarendon at teamwpc.co.uk> wrote:
[...]
Strange, it is there for me on OSX, and I am also using a stock DMG.
For windows the directory structure is (typically?) different because
it has two sub-architectures, but there is some configuration info
there AFAIR.

Gabor
#
I use the CRAN provided R of OS X.
Makeconf is here:  /Library/Frameworks/R.framework/Versions/3.2/Resources/etc/Makeconf

Berend