Re: [R-pkg-devel] scripting R through lldb

2016-06-15 Thread Guillaume Chapron
Fantastic, it works perfectly, many thanks! Guillaume > On 15 Jun 2016, at 21:49, Kevin Ushey wrote: > > Hi Guillaume, > > I have a script that does this (for OS X) here, taking advantage of > the new '--batch' argument to lldb: > >https://github.com/kevinushey/etc/blob/master/lang/r/mac/

Re: [R-pkg-devel] scripting R through lldb

2016-06-15 Thread Kevin Ushey
Hi Guillaume, I have a script that does this (for OS X) here, taking advantage of the new '--batch' argument to lldb: https://github.com/kevinushey/etc/blob/master/lang/r/mac/bin/r-lldb Note that, on recent versions of OS X due to system integrity protection, this may not work with the syste

[R-pkg-devel] scripting R through lldb

2016-06-15 Thread Guillaume Chapron
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 a