Skip to content

Stack overflow error while creating package

3 messages · manohar, Martin Maechler, Brian Ripley

#
Hi all,
I am trying to build a package in R (ver 2.1.0, on a
PC). I am able to run package.skeleton successfully
and populate the different environments. 
However, when I attempt to invoke the build (R CMD
BUILD), i get an error which says something like 
       protect(): Stack Overflow

I would appreciate if anyone could suggest a way to
get around this error message and help me build the
package.

thanks in advance,
manohar
#
manohar> Hi all,
    manohar> I am trying to build a package in R (ver 2.1.0, on a
    manohar> PC). 

which I interpret that you are running Windows, right?

    manohar> I am able to run package.skeleton successfully
    manohar> and populate the different environments. 
    manohar> However, when I attempt to invoke the build (R CMD
    manohar> BUILD), i get an error which says something like 
    manohar> protect(): Stack Overflow

The NEWS for the current 'R 2.2.1 beta'
(-> http://stat.ethz.ch/R-manual/R-patched/NEWS )
has had a very prominent entry at the beginning (for many weeks now),
(and actually, the crashes seemed to happen particurlary often
 on Windows)

    manohar> I would appreciate if anyone could suggest a way to
    manohar> get around this error message and help me build the
    manohar> package.

You can download the pretty new precompiled R-patched (as of today "R beta")
versions for windows from your nearest CRAN mirror,
newest via "Precompiled" -> "Windows" -> "base" and "r-patched snapshot build"

Regards,
Martin Maechler, ETH Zurich
#
I don't think this is C stack overflow.  His R is so old the message means
`protection stack overflow'.

The first action (as described in the posting guide) is indeed to update 
R, though.
On Tue, 6 Dec 2005, Martin Maechler wrote: