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 simon.urba...@r-project.org wrote: Sean, On May 23, 2011, at 2:03 PM, Sean Robert McGuffee wrote: On 5/23/11 1:30 PM, Simon Urbanek simon.urba...@r-project.org wrote: On May 23, 2011, at 12:56 PM, Sean Robert McGuffee wrote

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-23 Thread Sean Robert McGuffee
On 5/23/11 1:30 PM, Simon Urbanek simon.urba...@r-project.org 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 though autoconf used any

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

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:

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 (e.g.,

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 simon.urba...@r-project.org wrote: On May 13, 2011, at 7:08 PM, Sean Robert McGuffee wrote: On 5/12/11 9:13 AM, Simon Urbanek simon.urba...@r-project.org wrote: I just want to clarify the mechanics of the help system when using html. R has

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

2011-05-13 Thread Sean Robert McGuffee
system and as to if this causes the bug. At the moment this tells me Error in gzfile(file, rb) : cannot open the connection even though it passes all the build check install tests on my machine. Thanks, Simon On May 11, 2011, at 7:14 PM, Sean Robert McGuffee wrote: Thanks everyone

[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

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 dtene...@fhcrc.org wrote: On Wed, May 11, 2011 at 12:08 PM, Sean Robert McGuffee sean.mcguf...@gmail.com 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

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

2011-05-11 Thread Sean Robert McGuffee
-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 to put images into my package¹s help documentation. I¹ve gotten to the point where

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

2011-05-11 Thread Sean Robert McGuffee
-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 to put images into my package¹s help documentation. I¹ve gotten to the point where I

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

2011-05-10 Thread Sean Robert McGuffee
, Sean On 5/8/11 12:56 AM, Sean Robert McGuffee sean.mcguf...@gmail.com 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 example and then have it conditionally write to Rprintf or cout and/or REprintf or cerr

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

2011-05-07 Thread Sean Robert McGuffee
AM, Sean Robert McGuffee wrote: This is a good idea as to converting to stringstream's because it could let me remove cout and cerr from the equation. At the moment, I get that feeling from the experts that having cout and cerr is causing a bug by not mixing with R. I have other cases where

[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

[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

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

2011-05-06 Thread Sean Robert McGuffee
. 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, Dirk Eddelbuettel e...@debian.org wrote: On 6 May 2011 at 14:21, Sean Robert McGuffee wrote: | Hi, | | Sorry, I just tried posting this but I had it in the wrong format

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

2011-05-06 Thread Sean Robert McGuffee
, Sean Robert McGuffee wrote: | | Hi, | | Thanks for the comments so far. | | I've been going through the code extensively and seem to be having trouble | reproducing what R is doing, so this confuses me. For example, when I write | out the pointer values for ptr_R_WriteConsole type

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

2011-04-27 Thread Sean Robert McGuffee
list it shows me. Sean On 4/26/11 8:51 PM, Simon Urbanek simon.urba...@r-project.org 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 via Rcpp calls to some of my c++ libraries from R. My main

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

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

2011-04-23 Thread Sean Robert McGuffee
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 simon.urba...@r-project.org wrote: On Apr 21, 2011, at 10:52 AM, Sean Robert McGuffee wrote: Thanks, That's great, but I

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

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.

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

2011-04-21 Thread Sean Robert McGuffee
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 mailinglist.honey...@gmail.com wrote: | Hi, | | On Wed, Apr 20

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 murdoch.dun...@gmail.com wrote: On 11-04-20 11:33 AM, Sean Robert McGuffee wrote: Hi, apparently I sent my question about using R and C

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

2011-04-21 Thread Sean Robert McGuffee
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 my current

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 simon.urba...@r-project.org 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