Skip to content

check does not accept --vsize option (PR#481)

3 messages · neteler@geog.uni-hannover.de, Douglas Bates, Brian Ripley

#
Full_Name: Markus Neteler
Version: 1.0.0
OS: Linux 2.2.10/i686
Submission from: (NULL) (130.75.72.37)


Hi,

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]
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.

Hoping for a bug fix!

Kind regards and many thanks for your work

 Markus Neteler
 GRASS GIS 5 coordinator




-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
neteler@geog.uni-hannover.de writes:
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

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On 13 Mar 2000, Douglas Bates wrote:

            
What version of R were you using?  That bug report was from 0.99.0,
I think.
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