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

2011-04-23 Thread Martin Maechler
> Simon Urbanek > on Thu, 21 Apr 2011 10:57:19 -0400 writes: > On Apr 21, 2011, at 10:52 AM, Sean Robert McGuffee wrote: >> Thanks, >> That's great, but I don't know how to determine what foo is. > It's the name of your package. >> How do I declare the name of

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

2011-04-23 Thread Sean Robert McGuffee
Hi All, Just to follow up, I finally figured out a way to make a simple test project I'm working on to compile and install and have access the code inside of R. It turns out it was related to this "foo" name. I had to make the name of my dynamic library output have the same name as the "foo" from

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

2011-04-22 Thread Sean Robert McGuffee
Hi Charlie, Thanks so much! That is very informative and extremely interesting. I have yet to learn how to setup the GNU autotools Configure script, but it's time for me to get there. I think that should be my next step and I'll definitely be checking out that GNU package and the `rgdal` example. A

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

2011-04-22 Thread Sharpie
smcguffee wrote: > > Hi Charlie, > > Thanks for the help, > > I think some of my story of having been reading the documentation and > playing with examples for weeks has gotten lost in the switch of threads. > I > think most of that confusion also comes from me not figuring out how to > connec

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

2011-04-22 Thread Sean Robert McGuffee
Hi Charlie, Thanks for the help, I think some of my story of having been reading the documentation and playing with examples for weeks has gotten lost in the switch of threads. I think most of that confusion also comes from me not figuring out how to connect different sections of the documentati

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

2011-04-21 Thread Sharpie
smcguffee wrote: > > You are right, I looked and I did find the R source code. However, it's > largely written in R! I mean, I don't know how to trace the R code where > INSTALL is recognized and follow it to a c or c++ level command. For > example > these are hits in .R files, not c files, and I

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

2011-04-21 Thread Sean Robert McGuffee
You are right, I looked and I did find the R source code. However, it's largely written in R! I mean, I don't know how to trace the R code where INSTALL is recognized and follow it to a c or c++ level command. For example these are hits in .R files, not c files, and I don't know how to connect what

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

2011-04-21 Thread Joshua Ulrich
Please, please, please read the documentation before sending more questions to the list. You also have the source code, so you can look at what "R CMD build" and "R CMD INSTALL" are doing. -- Joshua Ulrich  |  FOSS Trading: www.fosstrading.com On Thu, Apr 21, 2011 at 10:16 AM, Sean Robert McGuf

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

2011-04-21 Thread Sean Robert McGuffee
Ah, that's simple, thanks! On 4/21/11 10:57 AM, "Simon Urbanek" wrote: > > On Apr 21, 2011, at 10:52 AM, Sean Robert McGuffee wrote: > >> Thanks, >> That's great, but I don't know how to determine what foo is. > > It's the name of your package. > > >> How do I declare the name of the packa

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

2011-04-21 Thread Sean Robert McGuffee
So, how is the package turning it's name into those commands? Does the installation automatically list the src directory and iteratively run a loop over each file and call 'R CMD SHLIB objectOfIterator' ? The reason this is so important is because it¹s easy to get things to work via a terminal com

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

2011-04-21 Thread Duncan Murdoch
On 21/04/2011 10:52 AM, Sean Robert McGuffee wrote: Thanks, That's great, but I don't know how to determine what foo is. How do I declare the name of the package? See the Writing R Extensions manual, or a tutorial on the topic, e.g. the one I gave at UseR 2008, available here: www.r-project.

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

2011-04-21 Thread Simon Urbanek
On Apr 21, 2011, at 10:52 AM, Sean Robert McGuffee wrote: > Thanks, > That's great, but I don't know how to determine what foo is. It's the name of your package. > How do I declare the name of the package? > in DESCRIPTION: Package: name and the directory of your package has to have the sam

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

2011-04-21 Thread Sean Robert McGuffee
Thanks, That's great, but I don't know how to determine what foo is. How do I declare the name of the package? On 4/21/11 7:16 AM, "Duncan Murdoch" wrote: > On 11-04-20 11:33 AM, Sean Robert McGuffee wrote: >> Hi, apparently I sent my question about using R and C++ to the wrong list, >> ironica

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

2011-04-21 Thread Dirk Eddelbuettel
On 21 April 2011 at 07:16, Duncan Murdoch wrote: | On 11-04-20 11:33 AM, Sean Robert McGuffee wrote: | > Hi, apparently I sent my question about using R and C++ to the wrong list, | > ironically seeing as that list was called Rcpp. Anyway, I was directed to | > post my question here. To summarize

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

2011-04-21 Thread Duncan Murdoch
On 11-04-20 11:33 AM, Sean Robert McGuffee wrote: Hi, apparently I sent my question about using R and C++ to the wrong list, ironically seeing as that list was called Rcpp. Anyway, I was directed to post my question here. To summarize my current question, I have found two commands that I want to

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

2011-04-20 Thread Sean Robert McGuffee
Hi, apparently I sent my question about using R and C++ to the wrong list, ironically seeing as that list was called Rcpp. Anyway, I was directed to post my question here. To summarize my current question, I have found two commands that I want to be able to put into a package. The commands are 'R C