Bug 14273 - Compressed data tables are not lazyload-ed if they carry the .gz extension
Compressed data tables are not lazyload-ed if they carry the .gz extension
Status: CLOSED FIXED
Product: R
Classification: Unclassified
Component: Installation
R 2.11.0
ix86 (32-bit) Linux
: P5 minor
Assigned To: R-core
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-28 02:20 UTC by Hsiu-Khuern Tang
Modified: 2010-05-16 09:09 UTC (History)
0 users

See Also:


Attachments
Mini R package to illustrate the problem (533 bytes, application/x-gtar)
2010-04-28 02:21 UTC, Hsiu-Khuern Tang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hsiu-Khuern Tang 2010-04-28 02:20:11 UTC
According to the Writing R Extensions manual,

"As from R 2.10.0 tables (`.tab', `.txt', or `.csv' files) can be
compressed by `gzip', `bzip2' or `xz', optionally with additional
extension `.gz', `.bz2' or `.xz'."


However, when I put a file with the .gz extension in my package data/ subdirectory and specify LazyData: yes, the file is not lazyload-ed by R CMD INSTALL.  For the same compressed file, if I leave out the .gz extension, it is lazyload-ed.

I am attaching a small package to illustrate this.

Thanks,
Hsiu-Khuern.

-- 
Hsiu-Khuern Tang
Intuit Inc.
Comment 1 Hsiu-Khuern Tang 2010-04-28 02:21:27 UTC
Created attachment 1100 [details]
Mini R package to illustrate the problem
Comment 2 Brian Ripley 2010-05-16 09:09:10 UTC
fixed for 2.11.1