Re: [Rcpp-devel] [Segfault Reason] Beginner Question: Same code *sometimes* fails due to segfault sometimes

2011-05-23 Thread Sean Robert McGuffee
Also, I had that type of error when I didn't have all of the proper libraries linked. That can be an issue that produces this type of error. On 5/20/11 7:39 PM, "Davor Cubranic" wrote: > On 2011-05-20, at 12:59 AM, Sunny Srivastava wrote: > >> My code sometimes fails with a segmentation fault

Re: [Rcpp-devel] Unable to install RcppArmadillo from CRAN or from SVN archive on Ubuntu 10.10

2011-04-28 Thread Sean Robert McGuffee
I don't know if this is useful, but the results from a grep I did on a different system suggest that include/armadillo_bits/arma_version.hpp might be a file to look into: grep -i arma * */* */*/* |grep -i ver DESCRIPTION:Armadillo library (currently version 1.1.8). Thus users do not DESCR

Re: [Rcpp-devel] rout and rerr instead of cout and cerr in Rcpp

2011-04-27 Thread Sean Robert McGuffee
//revert to original state cout.rdbuf(save_sbuf_cout); cerr.rdbuf(save_sbuf_cerr); fout.close(); ferr.close(); } } On 4/27/11 9:26 PM, "Sean Robert McGuffee" wrote: >>>On 11/10/2009 12:23 PM, Dirk Eddelbuettel wrote: >>&

[Rcpp-devel] rout and rerr instead of cout and cerr in Rcpp

2011-04-27 Thread Sean Robert McGuffee
>On 11/10/2009 12:23 PM, Dirk Eddelbuettel wrote: >> > >> > On 10 November 2009 at 09:47, Romain François wrote: >> > | Hi, >> > | >> > | Would it make sense to have an rout and rerr so that we could do : >> > | >> > | rout<< "bla bla"<< endl ; >> > | >> > | and >> > | >> > | rerr<< "

[Rcpp-devel] Thread handling

2011-04-26 Thread Sean Robert McGuffee
Hi, I¹ve finally got a working start to using Rcpp to interface with some of my c++ code, and now I have a practical question about the interface. My first task was simply to launch algorithms from R, and thanks to a lot of help from this community, I finally got that task solved. Now, however, I

Re: [Rcpp-devel] [Rd] FW: Question on 5.6 Interfacing C++ code

2011-04-23 Thread Sean Robert McGuffee
Pick one of rcpp-devel or r-devel. I used the > former here but there is nothing really specific to Rcpp in your quests to > build a package. > > On 23 April 2011 at 04:03, Sean Robert McGuffee wrote: > [...] > | NAMESPACE file. Was this obvious to everyone else from reading the

Re: [Rcpp-devel] [Rd] FW: Question on 5.6 Interfacing C++ code

2011-04-23 Thread Sean Robert McGuffee
naming my function MY_PACKAGE_NAME too, is that important? If I want to add more functions, I assume I can do that as long as I link them into the TOP/src/MY_PACKAGE_NAME.so file. Is that correct? Thanks in advance, Sean On 4/21/11 10:57 AM, "Simon Urbanek" wrote: > > On Apr 21

Re: [Rcpp-devel] Question on 5.6 Interfacing C++ code

2011-04-20 Thread Sean Robert McGuffee
Does anyone know how to get this email sent to whereever it's supposed to be sent? On 4/20/11 10:33 AM, "Dirk Eddelbuettel" wrote: > > On 20 April 2011 at 10:20, Sean Robert McGuffee wrote: > | > | > | Hi, thanks! > | > | >On 4/20/11 10:03 A

Re: [Rcpp-devel] Question on 5.6 Interfacing C++ code

2011-04-20 Thread Sean Robert McGuffee
> > Steve had the right hunch: Is this a question for > > r-devel,ie R in general, or for > > rcpp-devel, ie R with Rcpp ? > > > On 20 April 2011 at 09:49, Sean Robert McGuffee wrote: > | Hi, I have a quick couple of questions about some

Re: [Rcpp-devel] Question on 5.6 Interfacing C++ code

2011-04-20 Thread Sean Robert McGuffee
Hi, thanks! >On 4/20/11 10:03 AM, "Steve Lianoglou" wrote: > Hi, > > On Wed, Apr 20, 2011 at 9:49 AM, Sean Robert McGuffee > wrote: >> Hi, I have a quick couple of questions about some of the documentation on >> the web page: >> http://cran.r-proje

[Rcpp-devel] Question on 5.6 Interfacing C++ code

2011-04-20 Thread Sean Robert McGuffee
Hi, I have a quick couple of questions about some of the documentation on the web page: http://cran.r-project.org/doc/manuals/R-exts.html#Linking-GUIs-and-other-fro nt_002dends-to-R under the heading: 5.6 Interfacing C++ code Question 1: If I¹m at a terminal, I can type the instructions they sugge

Re: [Rcpp-devel] useDynLib

2011-04-01 Thread Sean Robert McGuffee
Wow, Thanks! That is extremely useful! I hadn't found that section 1.2.1, but that is definitely something I shouldn't have been overlooking. Sean On 4/1/11 2:15 PM, "Davor Cubranic" wrote: > On 2011-03-31, at 8:12 PM, Sean Robert McGuffee wrote: > >> Than

Re: [Rcpp-devel] useDynLib

2011-03-31 Thread Sean Robert McGuffee
/usr/local/lib/libpng14.a How would I use useDynLib in that case? On 3/31/11 10:49 PM, "Davor Cubranic" wrote: > On 31 March 2011 at 3:53 PM, Sean Robert McGuffee wrote: > >> This link has a lot of information in it, but I don't understand much >> o

Re: [Rcpp-devel] useDynLib

2011-03-31 Thread Sean Robert McGuffee
onform to ISO/IEC 9899:1990 (``ISO C90''). The stpcpy() function is an MS-DOS and GNUism. The stpcpy() function conforms to no standard. HISTORY The stpcpy() function first appeared in FreeBSD 4.4, coming from 1998-vintage Linux. BSD August 9, 2

[Rcpp-devel] useDynLib

2011-03-31 Thread Sean Robert McGuffee
Dear Rcpp List, I¹ve been looking at some R packages that use libraries and I have figured out that there is a keyword in the NAMESPACE file that I would like to understand. I¹m at a complete loss for what the NAMESPACE file is or how to get help for what goes in it. Has anyone found a resource fo

Re: [Rcpp-devel] error while calling function in loop

2011-03-28 Thread Sean Robert McGuffee
Judging from Dirk's "Reply on the damn list. How hard is that?" statement, I imagine his is already convinced... On 3/28/11 2:49 PM, "Douglas Bates" wrote: > On Mon, Mar 28, 2011 at 1:31 PM, Sean Robert McGuffee > wrote: >> How hard is it to set up the li

Re: [Rcpp-devel] error while calling function in loop

2011-03-28 Thread Sean Robert McGuffee
How hard is it to set up the list with a default reply to address of the list? On 3/26/11 9:36 AM, "nandan amar" wrote: > Ohh Then i sud select reply to all > > Thanks Dirk, > But RInside R(argc, argv) is not a variable . > How can I declare it globally or share its instance. > If it is not re

Re: [Rcpp-devel] error while calling function in loop

2011-03-28 Thread Sean Robert McGuffee
RInside R(argc, argv); //this would appear to be a class called RInside definining a variable called R initialized with argc and argv variables. To declare it globally, you would need to define it inside a *.cpp file once, and only once. Usually this is easiest to do at the top of a *.cpp file th

[Rcpp-devel]

2011-03-23 Thread Sean Robert McGuffee
t and other libraries. I get the feeling that there must be a way to do this in an R interface, I'm just not clear as to how. I hope this paints a clearer picture of what my problem is. Thanks again for any help, Sean On 3/23/11 7:49 AM, "Dirk Eddelbuettel" wrote: > > Hi

[Rcpp-devel] Installation Problem

2011-03-22 Thread Sean Robert McGuffee
Hi, I’m new to using C++ inside of R. I got a test program to work, so it’s time for me to attach some function to it. I seem to be having some issues though. I wonder if anyone out there can help me understand the results I am getting. I’ve got to a point where it seems to me that everything is in