From ripley at stats.ox.ac.uk  Sat May 18 11:28:43 2013
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Sat, 18 May 2013 10:28:43 +0100
Subject: [Rd] R CMD config for R >= 3.0.1
In-Reply-To: <20130518145434.4194be90@bossiaea>
References: <20130518145434.4194be90@bossiaea>
Message-ID: <519749CB.20408@stats.ox.ac.uk>

On 18/05/2013 07:54, Berwin A Turlach wrote:
> Dear all,
>
> When installing the usual packages that I use, after installing R
> 3.0.1, I noticed that the installation of some packages that query R about
> its configuration did not succeed.  The problem is exemplified by:
>
> berwin at bossiaea:~$ R-3.0.1 CMD config CC
> /opt/R/R-3.0.1/lib/R/bin/config: 222: .: Can't open /opt/R/R-3.0.1/lib/R/etc/Renviron
>
> Prior to R 3.0.1 such commands worked fine:
>
> berwin at bossiaea:~$ R-3.0.0 CMD config CC
> gcc -std=gnu99
>
>
> I noticed now that my installations of the development and
> patched version of R have the same problem (since I usually do not install
> packages in those versions that query the configuration, I hadn't
> noticed the issue earlier).
>
> The problem seems to be line 222 of `R RHOME`/bin/config (when R is R
> 3.0.1) which reads:
>
> 	. ${R_HOME}/etc/Renviron
>
> The file ${R_HOME}/etc/Renviron does not necessarily exists if one has
> opted for 32/64-bit builds and installed both as sub-architectures,
> which I have.  In my installation ${R_HOME}/etc/32/Renviron and
> ${R_HOME}/etc/64/Renviron exist, but no ${R_HOME}/etc/Renviron.
>
> Is it necessary for R >= 3.0.1 to have one build as
> "main"-architecture and the other one as sub-architecture?  I could not
> find anything in the NEWS file or the Admin manual that indicated that
> this would now be necessary.

Not exclusively, but as the Mac build no longer uses this, we do need 
people who do to test pre-releases.   One of us needs to build such a 
setup and test it ....


>
> Cheers,
>
> 	Berwin
>
> For completeness:
>
> I am running an Ubuntu 12.04 system and:
>
> berwin at bossiaea:~$ echo "sessionInfo()" | R-3.0.1 --slave
> R version 3.0.1 (2013-05-16)
> Platform: x86_64-unknown-linux-gnu/64 (64-bit)
>
> locale:
> [1] C
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods    base
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] R CMD config for R >= 3.0.1
Prof Brian Ripley