Re: [Rcpp-devel] Debugging an Rcpp/RCppArmadillo program?

2013-04-08 Thread Davor Cubranic
On 13-04-08 07:57 AM, Dirk Eddelbuettel wrote: On 8 April 2013 at 16:37, Stefano Calza wrote: | 1) open R in emacs (M-x R) and load the *.so. At developement stage it might be | useful to use sourceCpp | 2) open gdb (M-x gdb) in emacs | 3) look for R session id (see "ps" command), let's assume

Re: [Rcpp-devel] Debugging an Rcpp/RCppArmadillo program?

2013-04-08 Thread Dirk Eddelbuettel
On 8 April 2013 at 16:37, Stefano Calza wrote: | Hi, | | if you use emacs you might do the following (tested in Linux, but ideally | possible in Windows too): | | 1) open R in emacs (M-x R) and load the *.so. At developement stage it might be | useful to use sourceCpp | 2) open gdb (M-x gdb) in

Re: [Rcpp-devel] Debugging an Rcpp/RCppArmadillo program?

2013-04-08 Thread Stefano Calza
Hi, if you use emacs you might do the following (tested in Linux, but ideally possible in Windows too): 1) open R in emacs (M-x R) and load the *.so. At developement stage it might be useful to use sourceCpp 2) open gdb (M-x gdb) in emacs 3) look for R session id (see "ps" command), let's as

Re: [Rcpp-devel] Cannot install Rcpp 0.8.6 under R 2.11.0 or R 3.0.0 in Ubuntu 12.10

2013-04-08 Thread Dirk Eddelbuettel
On 8 April 2013 at 15:51, Kirill Müller wrote: | The first two -- to maintain compatibility with those ancient versions. | The last one -- because I'm so lazy and loathe working in a virtual | machine instead of my native environment. I guess I'll have to overcome | my laziness in such cases --

Re: [Rcpp-devel] Cannot install Rcpp 0.8.6 under R 2.11.0 or R 3.0.0 in Ubuntu 12.10

2013-04-08 Thread Dirk Eddelbuettel
On 8 April 2013 at 08:34, Dirk Eddelbuettel wrote: | That seems so wrong on so many levels. | | Why on earth R 2.11.0? And Rcpp 0.8.6? And why on earth on a current OS? | | If you really must use an R version that was current in May 2010 (!!!) and is | hence three years and six major releases b

Re: [Rcpp-devel] Cannot install Rcpp 0.8.6 under R 2.11.0 or R 3.0.0 in Ubuntu 12.10

2013-04-08 Thread Kirill Müller
Hi Dirk Thanks for your reply. I didn't mention that the context is "package development". So: On 04/08/2013 03:34 PM, Dirk Eddelbuettel wrote: Why on earth R 2.11.0? And Rcpp 0.8.6? And why on earth on a current OS? The first two -- to maintain compatibility with those ancient versions. Th

Re: [Rcpp-devel] Debugging an Rcpp/RCppArmadillo program?

2013-04-08 Thread Dirk Eddelbuettel
On 8 April 2013 at 09:27, Andre Mikulec wrote: | Hi, | | Pardon me. I am relatively new. | | What is a way ( or effective way ) to debug an Rcpp/RCppArmadillo program that | is running within R? | | Do I try somehow to set an inline RCpp/RCppArmidillo | script attribute to 'Debug' ( if this

Re: [Rcpp-devel] Cannot install Rcpp 0.8.6 under R 2.11.0 or R 3.0.0 in Ubuntu 12.10

2013-04-08 Thread Dirk Eddelbuettel
On 8 April 2013 at 15:07, Kirill Müller wrote: | Hi | | I cannot install Rcpp 0.8.6 from source in Ubuntu 12.10. Installation | fails with the message appended below. The error is similar for R 2.11.0 | and R 3.0. What am I doing wrong? | | I'd like to build a test environment with R 2.11.0 an

[Rcpp-devel] Debugging an Rcpp/RCppArmadillo program?

2013-04-08 Thread Andre Mikulec
Hi, Pardon me. I am relatively new. What is a way ( or effective way ) to debug an Rcpp/RCppArmadillo program that is running within R? Do I try somehow to set an inline RCpp/RCppArmidillo script attribute to 'Debug' ( if this exists? ) Do I recompile R ( with perhaps 'g++ -g -O0' and t

[Rcpp-devel] Cannot install Rcpp 0.8.6 under R 2.11.0 or R 3.0.0 in Ubuntu 12.10

2013-04-08 Thread Kirill Müller
Hi I cannot install Rcpp 0.8.6 from source in Ubuntu 12.10. Installation fails with the message appended below. The error is similar for R 2.11.0 and R 3.0. What am I doing wrong? I'd like to build a test environment with R 2.11.0 and a corresponding version of Rcpp. Thank you for your help.