Your message dated Mon, 30 Jan 2006 20:47:33 -0600
with message-id <[EMAIL PROTECTED]>
and subject line Bug#350657: r-base: download.packages() assumes 
/usr/local/lib/R is writeable
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 31 Jan 2006 01:57:42 +0000
>From [EMAIL PROTECTED] Mon Jan 30 17:57:42 2006
Return-path: <[EMAIL PROTECTED]>
Received: from ptb-relay02.plus.net ([212.159.14.213])
        by spohr.debian.org with esmtp (Exim 4.50)
        id 1F3km6-0007wa-Hm
        for [EMAIL PROTECTED]; Mon, 30 Jan 2006 17:57:42 -0800
Received: from [212.159.16.190] (helo=gpk.lan)
         by ptb-relay02.plus.net with esmtp (Exim) id 1F3kla-0002M4-2X
        for [EMAIL PROTECTED]; Tue, 31 Jan 2006 01:57:10 +0000
Received: from gpk by gpk.lan with local (Exim 4.60)
        (envelope-from <[EMAIL PROTECTED]>)
        id 1F3klO-0000Js-L1; Tue, 31 Jan 2006 01:56:58 +0000
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Greg Kochanski <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: r-base: download.packages() assumes /usr/local/lib/R is writeable
Message-ID: <[EMAIL PROTECTED]>
X-Mailer: reportbug 3.18
Date: Tue, 31 Jan 2006 01:56:58 +0000
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: r-base
Version: 2.2.1-2
Severity: normal


This bug can be considered to be
(1) incorrect handling of a user error, or
(2) incorrect documentation, or
(3) missing Debian documentation.
(Depending on one's mood, I suppose.)

Running download.packages("vcd") leads to 
(a) a warning that it is going to attempt to write to /usr/local/lib/R,
        which is not a directory to which Debian users normally
        have write permission.   Then, errors from lack of permission.
(b) Note that according to the R documentation, lib is a required
        argument without a default, so an error should be reported even be
        before a download is attempted.
(c) The resulting error message could be more helpful;
        it could suggest a change to the lib argument or
        perhaps other things.

So, if the intent is to have a default argument for lib,
it should be specified in help(install.packages);
if not, it should return an error.

If the intent is to install into /usr/local/lib/R on Linux
boxes, then the Debian package ought to
note somewhere (probably in /usr/share/doc/r-base/README.Debian)
that users need to be in group staff to be able to install
R packages to the default directories.


> install.packages("vcd")
Warning in install.packages("vcd") : argument 'lib' is missing: using 
/usr/local/lib/R/site-library
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... done
trying URL 'http://cran.uk.r-project.org/src/contrib/vcd_0.9-7.tar.gz'
Content type 'application/x-gzip' length 771160 bytes
opened URL
==================================================
downloaded 753Kb

mkdir: cannot create directory `/usr/local/lib/R/site-library/00LOCK': 
Permission denied
ERROR: failed to lock directory '/usr/local/lib/R/site-library' for modifying

The downloaded packages are in
/tmp/RtmpCVx2nl/downloaded_packages
Warning messages:
1: installation of package 'vcd' had non-zero exit status in: 
install.packages("vcd")
2: cannot create HTML package index in: tools:::unix.packages.html(.Library)
>




-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages r-base depends on:
ii  r-base-core                   2.2.1-2    GNU R core of statistical computin
ii  r-recommended                 2.2.1-2    GNU R collection of recommended pa

Versions of packages r-base recommends:
pn  r-base-html                   <none>     (no description available)
pn  r-base-latex                  <none>     (no description available)

-- no debconf information

---------------------------------------
Received: (at 350657-done) by bugs.debian.org; 31 Jan 2006 02:48:24 +0000
>From [EMAIL PROTECTED] Mon Jan 30 18:48:20 2006
Return-path: <[EMAIL PROTECTED]>
Received: from rwcrmhc14.comcast.net ([216.148.227.154])
        by spohr.debian.org with esmtp (Exim 4.50)
        id 1F3lYw-0007od-9c
        for [EMAIL PROTECTED]; Mon, 30 Jan 2006 18:48:13 -0800
Received: from basebud.nulle.part 
(c-67-174-11-185.hsd1.il.comcast.net[67.174.11.185])
          by comcast.net (rwcrmhc14) with ESMTP
          id <20060131024735m1400lkkmie>; Tue, 31 Jan 2006 02:47:39 +0000
Received: from edd by basebud.nulle.part with local (Exim 4.60)
        (envelope-from <[EMAIL PROTECTED]>)
        id 1F3lYL-0005xx-Gz; Mon, 30 Jan 2006 20:47:33 -0600
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <[EMAIL PROTECTED]>
Date: Mon, 30 Jan 2006 20:47:33 -0600
To: Greg Kochanski <[EMAIL PROTECTED]>,
    [EMAIL PROTECTED]
Subject: Re: Bug#350657: r-base: download.packages() assumes /usr/local/lib/R 
is writeable
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
X-Mailer: VM 7.19 under Emacs 21.4.1
From: Dirk Eddelbuettel <[EMAIL PROTECTED]>
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER,
        RCVD_IN_SORBS autolearn=no version=2.60-bugs.debian.org_2005_01_02


Greg,

Trying to install into /usr/local/lib/R when you are NOT root and have NOT
proviously as root given write permission to anybody else is an obvious user
error on your part. 

R is cross-platform, and it makes no sense to split the semantics of the
function install.packages() across operating system.

If you design issues for R, please continue to raise those on r-help or
r-devel. 

This is not a bug, and in particular not in any way that Debian deviates from
R upstream (other than the warning you get if you don't specify lib.loc).

On 31 January 2006 at 01:56, Greg Kochanski wrote:
| Package: r-base
| Version: 2.2.1-2
| Severity: normal
| 
| 
| This bug can be considered to be
| (1) incorrect handling of a user error, or
| (2) incorrect documentation, or
| (3) missing Debian documentation.
| (Depending on one's mood, I suppose.)

As you were asking about patches on the R list, feel free to provide one for
-- Unix only
-- creation of a temp file in R_LIBS (or the first result returned by
   .libPaths() )
-- graceful abort is 2) fails.

Dirk

| 
| Running download.packages("vcd") leads to 
| (a) a warning that it is going to attempt to write to /usr/local/lib/R,
|       which is not a directory to which Debian users normally
|       have write permission.   Then, errors from lack of permission.
| (b) Note that according to the R documentation, lib is a required
|       argument without a default, so an error should be reported even be
|       before a download is attempted.
| (c) The resulting error message could be more helpful;
|       it could suggest a change to the lib argument or
|       perhaps other things.
| 
| So, if the intent is to have a default argument for lib,
| it should be specified in help(install.packages);
| if not, it should return an error.
| 
| If the intent is to install into /usr/local/lib/R on Linux
| boxes, then the Debian package ought to
| note somewhere (probably in /usr/share/doc/r-base/README.Debian)
| that users need to be in group staff to be able to install
| R packages to the default directories.
| 
| 
| > install.packages("vcd")
| Warning in install.packages("vcd") : argument 'lib' is missing: using
| /usr/local/lib/R/site-library
| --- Please select a CRAN mirror for use in this session ---
| Loading Tcl/Tk interface ... done
| trying URL 'http://cran.uk.r-project.org/src/contrib/vcd_0.9-7.tar.gz'
| Content type 'application/x-gzip' length 771160 bytes
| opened URL
| ==================================================
| downloaded 753Kb
| 
| mkdir: cannot create directory `/usr/local/lib/R/site-library/00LOCK': 
Permission denied
| ERROR: failed to lock directory '/usr/local/lib/R/site-library' for modifying
| 
| The downloaded packages are in
| /tmp/RtmpCVx2nl/downloaded_packages
| Warning messages:
| 1: installation of package 'vcd' had non-zero exit status in: 
install.packages("vcd")
| 2: cannot create HTML package index in: tools:::unix.packages.html(.Library)
| >
| 
| 
| 
| 
| -- System Information:
| Debian Release: testing/unstable
|   APT prefers testing
|   APT policy: (500, 'testing')
| Architecture: i386 (i686)
| Shell:  /bin/sh linked to /bin/bash
| Kernel: Linux 2.6.12-1-686
| Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
| 
| Versions of packages r-base depends on:
| ii  r-base-core                   2.2.1-2    GNU R core of statistical 
computin
| ii  r-recommended                 2.2.1-2    GNU R collection of recommended 
pa
| 
| Versions of packages r-base recommends:
| pn  r-base-html                   <none>     (no description available)
| pn  r-base-latex                  <none>     (no description available)
| 
| -- no debconf information
| 

-- 
Hell, there are no rules here - we're trying to accomplish something. 
                                                  -- Thomas A. Edison


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to