Re: [Rd] Calling Rscript from Makevars

2011-05-26 Thread Sean Robert McGuffee
Thanks for the help! On 5/23/11 8:58 PM, "Simon Urbanek" wrote: > Sean, > > On May 23, 2011, at 2:03 PM, Sean Robert McGuffee wrote: > >> >> On 5/23/11 1:30 PM, "Simon Urbanek" wrote: >> >>> >>> On May 23, 2011, at 12:56

Re: [Rd] Calling Rscript from Makevars

2011-05-23 Thread Sean Robert McGuffee
On 5/23/11 1:30 PM, "Simon Urbanek" wrote: > > On May 23, 2011, at 12:56 PM, Sean Robert McGuffee wrote: > >> I'm not sure what you mean by, "any tests you run in configure will ignore it >> since autoconf only uses LIBS and not PKG_LIBS." I

Re: [Rd] Calling Rscript from Makevars

2011-05-23 Thread Sean Robert McGuffee
Hi Simon, I'm not sure what you mean by, "any tests you run in configure will ignore it since autoconf only uses LIBS and not PKG_LIBS." I though autoconf used any variable names you tell it to, so that it would use PKG_LIBS if you tell it to. Also, I'm still not clear as to what a Makevars file

Re: [Rd] Calling Rscript from Makevars

2011-05-20 Thread Sean Robert McGuffee
> >> I still haven't figured out how to do the Makevars thing, > > > It's very simple - just remove all targets from your Makefile and you have > Makevars since R will do the compilation and linking for you and correctly. If > you feel like it, you can override its behavior by adding one rule

Re: [Rd] Calling Rscript from Makevars

2011-05-20 Thread Sean Robert McGuffee
> Note that setting PKG_LIBS in configure won't work since configure doesn't > know how to handle it. It may be ok if you don't care that the flags won't be > checked, but then you better know what you're doing ;). > Why wouldn't PKG_LIBS work in configure? configure.ac: PKG_LIBS=`${R_HOME}/bin

Re: [Rd] Calling Rscript from Makevars

2011-05-20 Thread Sean Robert McGuffee
Hi, I've found this type of thing to be extremely confusing, myself, but I managed to get something to work. I'm not sure how well. I also don't know if R is running autoconf or just configure--at least I don't remember off the top of my head. However, here are some examples of commands I put in my

Re: [Rd] R html help system [Was: How to document man/*.Rd pages with images?]

2011-05-16 Thread Sean Robert McGuffee
On 5/13/11 8:20 PM, "Simon Urbanek" wrote: > > On May 13, 2011, at 7:08 PM, Sean Robert McGuffee wrote: > >> >> On 5/12/11 9:13 AM, "Simon Urbanek" wrote: >> >>> I just want to clarify the mechanics of the help system when using

Re: [Rd] R html help system [Was: How to document man/*.Rd pages with images?]

2011-05-13 Thread Sean Robert McGuffee
ange/FileList.aspx?id=9afb4fe1-ce1c-406d-b1a 1-c9360493137c Please let me know if you see why this isn¹t working for me--both as to if this works as is on your system and as to if this causes the bug. At the moment this tells me " Error in gzfile(file, "rb") : cannot open the connect

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Sean Robert McGuffee
Thanks everyone for your help, To summarize a resolution to my issue, it turns out that an image can be include in a documentation file via html by putting an image file in the inst/doc directory, for example inst/doc/myPic.png, and then pointing to it in the man/myHelpPage.Rd file, for example as

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Sean Robert McGuffee
oun...@r-project.org [mailto:r-devel-bounces@r- >> project.org] On Behalf Of Sean Robert McGuffee >> Sent: May 11, 2011 3:08 PM >> To: r-devel@r-project.org >> Subject: [Rd] How to document man/*.Rd pages with images? >> >> Hi, >> I¹m trying to figure out how

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Sean Robert McGuffee
oun...@r-project.org [mailto:r-devel-bounces@r- >> project.org] On Behalf Of Sean Robert McGuffee >> Sent: May 11, 2011 3:08 PM >> To: r-devel@r-project.org >> Subject: [Rd] How to document man/*.Rd pages with images? >> >> Hi, >> I¹m trying to figure out h

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Sean Robert McGuffee
On 5/11/11 3:13 PM, "Dan Tenenbaum" wrote: > On Wed, May 11, 2011 at 12:08 PM, Sean Robert McGuffee > wrote: >> Hi, >> I¹m trying to figure out how to put images into my package¹s help >> documentation. I¹ve gotten to the point where I can put the images

[Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Sean Robert McGuffee
Hi, I¹m trying to figure out how to put images into my package¹s help documentation. I¹ve gotten to the point where I can put the images in the /inst/doc/ directory. I have also gotten to the point where I have package checks without any warnings. I couldn¹t find the terms ³picture,² ³image,² or ³g

Re: [Rd] cerr and cout not working calling c++ from R

2011-05-10 Thread Sean Robert McGuffee
all the help--I learned a lot about streams and stream buffers in the process. Thanks, Sean On 5/8/11 12:56 AM, "Sean Robert McGuffee" wrote: > Thanks, Simon, > That link may prove to be very useful. I think what I can do is make a > similar version of a buffer to one in that e

Re: [Rd] cerr and cout not working calling c++ from R

2011-05-07 Thread Sean Robert McGuffee
hoose to do it, you may find this link helpful: > http://groups.google.com/group/comp.lang.c++/msg/1d941c0f26ea0d81 > > Cheers, > Simon > > > On May 7, 2011, at 12:42 AM, Sean Robert McGuffee wrote: > >> This is a good idea as to converting to stringstream's because

Re: [Rd] cerr and cout not working calling c++ from R

2011-05-06 Thread Sean Robert McGuffee
fail. > > I'd suggest to start small with as little IO as possible. Maybe even comment > all IO out as much as possible. Or redo it as strstream and feed that to > Rprintf. > > Dirk > > > | Cheers, > | Simon > | > | > | > | On May 6, 2011, at 3:19 PM, Sean Robert McGu

Re: [Rd] cerr and cout not working calling c++ from R

2011-05-06 Thread Sean Robert McGuffee
c++ vs. >> | calling the same function from R. [...] >> In a nutshell, R 'owns' your console. That is part of the Faustian bargain. > > But isn't he redirecting cout to a file, so the C++ output is not to the > console? > > Davor On 5/6/11 2:41 PM, &quo

[Rd] cerr and cout not working calling c++ from R

2011-05-06 Thread Sean Robert McGuffee
Hi, Sorry, I just tried posting this but I had it in the wrong format of text, so this is a cleared format repost: I¹m trying to call some of my c++ code from R and seem to be having an issue with streams, although that¹s just one obvious sign of something different in performance between calling

[Rd] cerr and cout not working

2011-05-06 Thread Sean Robert McGuffee
Hi, I¹m trying to call some of my c++ code from R and seem to be having an issue with streams, although that¹s just one obvious sign of something different in performance between calling the same function from main in c++ vs. calling the same function from R. I¹m not getting any signs of errors fro

Re: [Rd] Thread synchronization [Was: Interrupting C++ code execution]

2011-04-27 Thread Sean Robert McGuffee
. I don't know if that influences the package list it shows me. Sean On 4/26/11 8:51 PM, "Simon Urbanek" wrote: > Sean, > > On Apr 26, 2011, at 5:06 PM, Sean Robert McGuffee wrote: > >> I've been thinking about how to handle c++ threads that were started

Re: [Rd] Interrupting C++ code execution

2011-04-26 Thread Sean Robert McGuffee
Hi, I've been thinking about how to handle c++ threads that were started via Rcpp calls to some of my c++ libraries from R. My main obstacle is trying to make sure that users don't try to process files that are being generated by a thread before the thread finishes. One thing I am considering is ha

Re: [Rd] FW: [Rcpp-devel] 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: [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 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 Sean Robert McGuffee
se 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,

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 o

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

2011-04-21 Thread Sean Robert McGuffee
ote: > > 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 &

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 usin

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

2011-04-20 Thread Sean Robert McGuffee
mentation and learn through examples, but I'm just not getting it and have been trying for weeks. Does anyone on this site have any suggestions for me? Thanks, Sean |On 20 April 2011 at 10:20, Sean Robert McGuffee wrote: | | | Hi, thanks! | | >On 4/20/11 10:03 AM, "Steve Lianoglou"