[Rd] R freezes under Windows while loading package

Duncan Murdoch murdoch at stats.uwo.ca
Wed May 3 16:22:39 CEST 2006

On 5/3/2006 10:14 AM, Sebastian Manz wrote:
> Hi,
> we build this R package using C++ code and under linux it works fine.
> After installing:
> - R version 2.2.1
> - minGW gcc version 3.4.2
> - perl version 5.8.8
> it finally compiled under Windows as well. But, if we try to load the
> library, R freezes without stressing the CPU.
> Maybe someone had a similar problem and now has a simple solution for
> it.

Presumably the problem is in the DLL.  Can you use dyn.load() to load it 
manually?  If so, you can set a debug breakpoint on each entry point, 
and see where things are going wrong.  Instructions for doing C-level 
debugging under Windows are on my web page,


and more general-purpose instructions are in the Writing R Extensions 
manual in 2.3.0.

Duncan Murdoch

More information about the R-devel mailing list