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:> 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. > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel
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:> 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: >> 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. >> >> ______________________________________________ >> R-devel at r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-devel
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
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