Skip to content
Prev 5776 / 12125 Next

[R-pkg-devel] "non-ASCII input" and "--data-compress" ignored

Hello, Ivan et al.:


 ????? I tried escaping "%" every time it occurred without success, but 
adding "\encoding{UTF-8}" as the 4th line of nuclearWeaponStates.Rd 
eliminated that problem.


 ????? Sadly, I tried "R CMD build --resave-data=best Ecdat", "R CMD 
build --resave-data Ecdat", "R CMD build Ecdat --resave-data", and "R 
CMD build Ecdat --resave-data=best", all without success.? I also noted 
that .travis.yml contains "r_build_args: --resave-data", which I 
remember adding some time ago to fix this problem.? And Travis reported 
this problem as well.? This suggests to me that a change was introduced 
with R 4.0.0 that disabled this option.


 ????? I also tried loading and resaving all the files in the data 
directory.? This seemed to achieve some additional compression on 
average, but I still got, "Note: significantly better compression could 
be obtained by using "R CMD build --resave-data".? I then tried load and 
saveRDS on each one individually, but at least the first of the 
resulting *.rda files was corrupted, so I restored what I had before.


 ????? Anyway, Ivan's suggestion fixed the UTF-8 problem and Travis 
confirmed that it can't make "--resave-data" work, either ;-)? If a CRAN 
maintainer complains about the compression problem, I can report what I 
tried and see what they suggest.


 ????? Thanks again,
 ????? Spencer Graves
On 2020-07-17 04:10, Ivan Krylov wrote: