[Rd] check does not accept --vsize option (PR#481)
Prof Brian D Ripley
ripley@stats.ox.ac.uk
Mon, 13 Mar 2000 20:28:41 +0000 (GMT)
On 13 Mar 2000, Douglas Bates wrote:
> neteler@geog.uni-hannover.de writes:
>
> > I wanted to "check" the R.GRASS GIS interface from Roger Bivand:
> > http://www.geog.uni-hannover.de/grass/statsgrasslist.html
> >
> > using
> > R CMD check --vsize=10M GRASS
> >
> > but:
> >
> > [error message shortened]
> > > G <- gmeta()
> > Error: heap memory (6144 Kb) exhausted [needed 1024 Kb more]
> > See "help(Memory)" on how to increase the heap size.
> > Execution halted
> >
> > It seems that --vsize is ignored. I check R/bin/check, the
> > parameter is sent properly to R but ignored there. From the
> > buglist I have seen that this problem occured with --nsize, too.
What version of R were you using? That bug report was from 0.99.0,
I think.
> An R CMD check is designed to run in a protected environment, which is
> the reason that some command line switches are ignored. A workaround
> is to specify the size as a shell or environment variable. That is, use
> R_VSIZE=10M R CMD check GRASS
> from a Bourne shell (or equivalent). From the C-shell you may need to
> use
> setenv R_VSIZE 10M
> R CMD check GRASS
I think CMD check _is_ now supposed to accept --vsize and --nsize:
auk% R CMD check --help
Usage: R CMD check [options] pkgs
...
--vsize=N set R's vector heap size to N bytes
--nsize=N set R's number of cons cells to N
However, it seems not to work correctly
ARGUMENT '{R_opts}' __ignored__
appears in *.Rout on Solaris, and only one of them is accepted.
In the check script we need
--nsize=*)
R_opts="${R_opts} ${1}" ;;
--vsize=*)
R_opts="${R_opts} ${1}" ;;
adding a couple of `$'.
On (t)csh I use something like.
env R_VSIZE=10M R CMD check GRASS
--
Brian D. Ripley, ripley@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._