Re: [R] debugging R

2012-02-05 Thread michael.zombok
Hi Alex, some hints and advices on debugging can be found in the 'Writing R Extensions Manual': http://cran.r-project.org/doc/manuals/R-exts.html#Debugging-R-code Depending on the IDE/editor you are using, there may be additional debugging tools/options, but without further informations about yo

[R] When exactly do I need R_alloc when using the .Call() interface?

2011-12-21 Thread michael.zombok
Hi, I am trying to implement an algorithm in C which will be called via the .Call() interface. While reading the 'Writing R Extension' manual, I stumbled upon the R_alloc() function for allocating storage for C objects. The manual says it should be used to allocate storage if an C object is neede