From ligges at statistik.tu-dortmund.de  Wed Mar 21 18:22:44 2012
From: ligges at statistik.tu-dortmund.de (Uwe Ligges)
Date: Wed, 21 Mar 2012 18:22:44 +0100
Subject: [Rd] uncompressed saves warning
In-Reply-To: <4F69DE6A.90701@yorku.ca>
References: <4F69DE6A.90701@yorku.ca>
Message-ID: <4F6A0E64.5010603@statistik.tu-dortmund.de>



On 21.03.2012 14:58, Michael Friendly wrote:
> [Env: Windows XP Pro / R 2.14.1 / StatET / R-Forge]
>
> A package of mine now generates a Warning under R 2.15.0 beta on CRAN
> checks:
>
> * checking data for ASCII and uncompressed saves ... WARNING
>
> Note: significantly better compression could be obtained
> by using R CMD build --resave-data
> old_size new_size compress
> gfrance.rda 300Kb 179Kb xz
> gfrance85.rda 295Kb 176Kb xz
>
> What is the equivalent R command to compress these files in my project
> tree?
>

Michael,

if you use
R CMD build --resave-data
to build the tar archive, the versions therein are recompressed.

Otherwise, you can also open the files and resave them via save() and 
appropriate arguments.

Or use  resaveRdaFiles() in package tools to runn it on a whole folder 
automatically.

Best,
uwe



[Rd] uncompressed saves warning
Uwe Ligges