Daily Archives: March 14, 2013

Using valgrind to debug R programs

If you want to debug your R program because of a segmentation fault or memory leak, you can use valgrind as follows in a shell: R -d "valgrind –leak-check=full –show-reachable=yes" -f your_script.RR -d "valgrind –leak-check=full –show-reachable=yes" -f your_script.R

Posted in R | Tagged , | Leave a comment