On Sat, 7 Apr 2007, Henrik Bengtsson wrote:
I located the problem to INSTALL. If no the library path is not
passed explicitly, that is no -l option is use, the following code in
called:
132: my @out = R_runR("cat(.libPaths()[1])", "--slave");
133: $library = @out[0];
134: $library = Win32::GetShortPathName($library) if $library =~ / /;
135: print "installing to '$library'\n";
In my .Rprofile I write a message "$HOME2/.Rprofile ...done" to
stdout. This is what is picked up in @out[0] above, and then I guess
the code on line 134 turns this into an empty string (somehow). By
adding option --vanilla to the R call, this problem goes away.
Here is a patch to $R_HOME/bin/INSTALL.
C:\Program Files\R\R-2.5.0alpha\bin>diff INSTALL INSTALL.new
132c132
< my @out = R_runR("cat(.libPaths()[1])", "--slave");
---
my @out = R_runR("cat(.libPaths()[1])", "--vanilla --slave");
On Sat, 7 Apr 2007, Henrik Bengtsson wrote:
Hi.
On 4/7/07, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
Nothing has changed here for three months, AFAICS. However, I noticed
have installed R into a directory with a space in the path, despite the
advice not to. OTOH, I have just tested installing where you did, and
was able to install R.oo:
[c:/Program Files/R/R-2.5.0alpha/bin]% ./Rcmd INSTALL
d:/R/packages/contrib/R.oo_1.2.3.tar.gz
installing to 'c:/PROGRA~1/R/R-25~1.0AL/library'
...
Thank you for this confirmation. It is odd though, because so have
also I done successfully for years.
On Windows, INSTALL is a Perl script. Please debug it to see what is
going wrong on your setup (it is working for many others).
I will debug INSTALL to see what might go wrong. I'll see if I can
locate an earlier version of R 2.5.0 alpha to see if the error really
is there or not.
You can of course specify -l to workaround this.
On Sat, 7 Apr 2007, Henrik Bengtsson wrote:
Hi,
I've just downloaded the latest R v2.5.0 alpha (2007-04-04 r41043) for
That is not the latest binary build I am offered, let alone the latest
sources.
Got it from the UC Davis CRAN mirror about an one hour before my message.
There is not much point in getting alpha/betas from mirrors: they can
introduce another 24-hour delay.
WinXP. When I try to
install a package R tries to install it to a no-name (empty name)
directory (causing error downstream):
RCMD INSTALL R.oo
installing to ''
FYI: Package install perfectly on R v2.4.1 patched, and did so also on
earlier R v2.5.0 devel/alpha(?) versions.
Current directory is:
C:\tmp
with subdirectory R.oo/ containing inst/ man/ R/ DESCRIPTION as usual.
I noticed the following in CHANGES and NEWS related to R CMD INSTALL:
o R CMD INSTALL now installs by default into the first library on
the library path if R was run in the current environment.
Similarly, R CMD REMOVE by default removes from that library.
R CMD INSTALL does a better job of removing its temporary
directory.
o R CMD INSTALL and R CMD REMOVE now use as the default library
(if -l is not specified) the first library that would be used
if R were run in the current environment (and they run R to
find it).
o R CMD INSTALL now prepends the installation directory (if
specified) to the library search path.
But my I do have:
[1] "C:/PROGRA~1/R/R-2.5.0alpha/library"
My setup:
echo %RHOME%:
C:\PROGRA~1\R\R-2.5.0alpha
[1] "C:/PROGRA~1/R/R-2.5.0alpha/library"
R version 2.5.0 alpha (2007-04-04 r41043)
i386-pc-mingw32
locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
ETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United
attached base packages:
[1] "stats" "graphics" "grDevices" "utils" "datasets"
[7] "base"
Any help appreciated
Henrik