ChenLiang, Johannes, Ben,

Thank you all for pushing the bug report further. That is something we ought
to bring to R Core's attention, but maybe a little home work is needed.

On 28 December 2009 at 14:23, ChenLiang Xu wrote:
| Hi,
| 
| I met similar problems when installing packages from CRAN.
| 
| It seems to be related with the function gzfile, which used by read.dcf
| I tried the following command,
| 
| > read.dcf(system.file("DESCRIPTION", package="lattice"), "Package")
| Error in read.dcf(system.file("DESCRIPTION", package = "lattice"), "Package") 
:
|   Line starting 'P ...' is malformed!
| 
| > thefile <- gzfile(system.file("DESCRIPTION", package="lattice"))
| > read.dcf(thefile, "Package")
| Error in read.dcf(thefile, "Package") :
|   Line starting 'P ...' is malformed!
| 
| > thefile <- file(system.file("DESCRIPTION", package="lattice"))
| > read.dcf(thefile, "Package")
|      Package
| [1,] "lattice"

So without it, it works. With gzfile(), it dies. And gzfile() is invoked
unconditionally at the top. 

Question now is whether that is a recent change or not. I only see something
related to 2.10.0 in NEWS:

    o   gzfile() looks at the file header and so can now also read
        bzip2-ed files and xz-compressed files.

which makes me think that this should have blown up earlier.

On the other hand, the library for gzip (zlib) is something where Debian
could be different which is wht 'we' see the bug and nobody else.  What do
you have on sid -- I have

ii  zlib1g        1:1.2.3.3.dfsg-15           compression library - runtime
ii  zlib1g-dev    1:1.2.3.3.dfsg-15           compression library - development

and 'apt-cache policy' leads to a newer version on unstable (1:2.3.4.dfsg-15) 

Can you downgrade zlib1g and see if this persists?

Dirk, hopeful we have a smoking gun

-- 
Three out of two people have difficulties with fractions.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to