Bug 15579 - Allow compression_level to be specified in save.defaults
Summary: Allow compression_level to be specified in save.defaults
Alias: None
Product: R
Classification: Unclassified
Component: Wishlist (show other bugs)
Version: R 3.0.2
Hardware: Other Other
: P5 enhancement
Assignee: R-core
Depends on:
Reported: 2013-11-27 14:34 UTC by Osmo Salomaa
Modified: 2013-11-27 16:33 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Osmo Salomaa 2013-11-27 14:34:03 UTC
The save function allows default values for some arguments to be specified in save.defaults in options. The compression type can be specified, but not the compression level.

This is a problem especially with xz compression, where the default compression level is set to 9, which can be very slow with large files. The range of compression times between the various levels is wide with file sizes even at the lowest levels still being smaller than with gzip. xz at a lower level (e.g. 3) would in some cases be a good compromise between the huge file size of gzip and long compression time of xz=9.

I can provide benchmarks if needed.
Comment 1 Brian Ripley 2013-11-27 16:33:59 UTC
Granted in R-devel