[Rd] R CMD check: OK in LINUX. Crashes in Windows!

Uwe Ligges ligges at statistik.tu-dortmund.de
Fri Feb 19 18:27:52 CET 2010

Hard to say anything if we do not see any details from your package, but 
very likely you just had some luck under Ubuntu not to see any crashes...

Uwe Ligges

On 18.02.2010 18:12, rt wrote:
> Hi,
> I have followed the recommended steps for creating a package (rctest). As of
> now, my goal is simply to understand how various pieces fit together. The
> package includes:
> (1) C code with source in sub-directories, compiled to create a static
> library.
> (a) There is a single C-struct (dns) a simple 'matrix': {int m; int n;
> double *d;}
> (b) C code to create random matrix of a certain size.
> (c) C code to free a dns object.
> (2) R-C wrappers.
>   (a) There is an S4 class (RDns) with a single slot, an external pointer to
> a C-struct (dns).
>   (b) C code to create an RDns object from an R matrix. Data from the R
> matrix is copied to the C dns object.
>   (c) C code to copy data from an RDns object to an R matrix.
>   (d)  init.c with registration routines and also a finalizer for the
> external pointer.
> (3) Makevars, NAMESPACE, Registration etc.
> (4) Documentation for all exported functions.
> The package passes all tests in R CMD check under Ubuntu. Everything seems
> to work fine.
> In Windows (using Rtools), R CMD check crashes at the end of the check.  At
> various times, the log indicates that all checks were OK and the pdf manual
> was created. Yet the console crashes.
> At other times "examples" fail to run and console crashes. However, the
> actual package loads fine and all of the functions work just fine from
> within R. Finalizer also works as expected when invoked by gc().
> At this point, I do not have any idea as to where or how I should look for
> the source of the problem. I am afraid, there may be something wrong with my
> code, but am not sure how to search for the bug.
> What other tests should I create to perform extensive tests that all parts
> of the code work as expected??
> Any help will be appreciated.
> Thanks,
> bug.
> Russ
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

More information about the R-devel mailing list