Hello,
I am debugging a package that contains some compiled C code. The C code uses R
random number generator so I cannot (or have not figured out how to) debug it
without running it through R. What I do is to type the following in the
terminal:
R --debugger=lldb
then in the lldb prompt
r
and within R
source("~/Desktop/test.R”)
which is the file calling the C library. When the library crashes I can
navigate the C memory to see where is the problem.
My question is whether there is a way to have this in single line or script to
run from the terminal. I have looked on stackoverflow but could not find.
Many thanks
Guillaume
______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel