On Sun, 13 Feb 2011, Yihui Xie wrote:
Regarding the reasons that make the doc directory large, I wonder if
we can make some changes in R:
'we' cannot: only core developers can. However, end users can
contribute in many other ways: see below.
1. Use a null graphics device as the default
I think it would be even more useful if we could get Sweave to easily
produce PNG figures instead of just PDF/EPS. In the current state of
things, making PNG versions is more cumbersome than making PDF versions,
so I'm not surprised that most people don't go to that trouble most of
the time.
Robin Hankin's post reminded me to post about the following recent
addition to 'Writing R Extensions', in the section on 'Submitting a
package to CRAN'
Ensure that the package sources are not unnecessarily large. ...
As a general rule, doc directories should not exceed 5Mb, and
where
Regarding the reasons that make the doc directory large, I wonder if
we can make some changes in R:
1. Use a null graphics device as the default device rather than pdf()
when running Sweave -- this can avoid the useless Rplots.pdf:
options(device = function(...) {
.Call(R_GD_nullDevice,