[Rd] possible memory leak in e1071 svm

2010-08-11 Thread sgerber
Hi All

I am developing a package depening on the svm implementation in e1071.
After running some tests I started to run in to memory problems for
moderate size problems.

I attached a simple piece of code and data the reproduces the problem -
running this code with valgrind:
R --vanilla -d "valgrind --tool=memcheck --leak-check=full" < svmtest.R
yields:

==76300== LEAK SUMMARY:
==76300==definitely lost: 0 bytes in 0 blocks
==76300==indirectly lost: 0 bytes in 0 blocks
==76300==  possibly lost: 12,186,900 bytes in 5,903 blocks
==76300==still reachable: 6,552,269 bytes in 1,653 blocks
==76300== suppressed: 6,414 bytes in 82 blocks
==76300== Reachable blocks (those to which a pointer was found) are not
shown.
==76300== To see them, rerun with: --leak-check=full --show-reachable=yes
==76300== 
==76300== For counts of detected and suppressed errors, rerun with: -v
==76300== ERROR SUMMARY: 1155 errors from 1155 contexts (suppressed: 3
from 3)

Is that relatively large amount of data possibly lost a potential memory
leak?

Thanks
Sam




library(e1071)
load("testsvm.Rdata")
svm <- svm(y ~ ., df, probability=TRUE,  scale = FALSE)
svm <- NULL



testsvm.Rdata
Description: GNU Zip compressed data
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] graphics device event handling

2011-12-19 Thread sgerber
Hi All

I run across the following situation quite frequently and was wondering if
there exists a simple solution that I missed.

Situation:
I develop some graphical display using the nice basic R graphical
functions (plots, lines, images, histogramm ...).
Now I would like to add a few simple user interaction capabilities.

Problem:
There seems to be no simple callback type event handling for
mouse/keyboard events for the basic graphics devices.
The setGraphicsEventHandlers only work on X11 (on MAC) which doesn't look
nearly as nice as the basic quartz device and doesn't support transparency.

Question:
Is there a way to add graphics event handling to the CairoX11 or quartz
interface in a similar simple fashion as the setGraphicsEventHandlers
framework without requiring packages such as Rgtk and deviceCairo which can
get fairly large and seem somewhat overkill for adding few simple
interactions to existing R plot compositions.


Kind Regards
Sam

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Makevars that distinguish between OSX and *NIX

2012-11-28 Thread sgerber

Hi

Is there a similar way to create a specific Makevars for OSX versus 
*NIX systems as for Windows, e.g. a Makervars.osx ?
If not what is there another lean solution to create system specific 
Makevars? I need to link differently depending on whether I am on *NIX 
or OSX (specifically link to OpenGL).



Thanks
Sam

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel