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] problem subsetting of a reference class

2011-04-21 Thread John Chambers
You're confusing functional and OOP-style methods. Since you define an OOP-style method, you need to invoke it in OOP style. With your example: > tmp$`[`("random") [1] -1.439131143 -0.630354726 0.822006263 -0.651707539 0.475332681 [6] 0.002680224 1.539035675 -0.117609566 2.066227300 1.

[Rd] problem subsetting of a reference class

2011-04-21 Thread A Zege
I am trying to define subset operator for a reference class and hitting some problem i am unable to diagnose.To give an example, here is a toy class generator that is a wrapper around a list tmpGEN<-setRefClass("TMP", fields=list( namelist="list"

Re: [Rd] Sweave support added to rgl package

2011-04-21 Thread Duncan Murdoch
I've just committed some changes to rgl that will probably detect bitmaps that are specified to be too large. As well, Brian Ripley backported some of the R-devel additions to the RweaveLatex driver, so now R 2.13.0-patched (revision 55572 or newer) should work as well as R-devel. Duncan Murd

Re: [Rd] How to get R to compile with PNG support

2011-04-21 Thread Karl-Dieter Crisman
Thanks for all the feedback. First, our update, then two responses. >From Jason Grout: +++ I finally got it working. After mucking around in the R configure file a bit and trying out some of the different tests, as well as comparing a working system with our broken system, I realized that `pkg-c

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] How to get R to compile with PNG support

2011-04-21 Thread Simon Urbanek
On Apr 20, 2011, at 8:35 AM, Karl-Dieter Crisman wrote: >> Message: 12 >> Date: Wed, 20 Apr 2011 02:09:23 -0700 (PDT) >> From: Sharpie >> To: r-devel@r-project.org >> Subject: Re: [Rd] How to get R to compile with PNG support >> Message-ID: <1303290563237-3462502.p...@n4.nabble.com> >> Content-T

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] How to get R to compile with PNG support

2011-04-21 Thread Simon Urbanek
On Apr 21, 2011, at 9:51 AM, Karl-Dieter Crisman wrote: > Thanks for your replies, Dirk and Matt. > > On Thu, Apr 21, 2011 at 7:49 AM, Dirk Eddelbuettel wrote: >> >> On 20 April 2011 at 12:16, Karl-Dieter Crisman wrote: >> | >> | >> | R is now configured for i686-pc-linux-gnu >> | Source

Re: [Rd] How to get R to compile with PNG support

2011-04-21 Thread Dirk Eddelbuettel
On 21 April 2011 at 09:51, Karl-Dieter Crisman wrote: | Thanks for your replies, Dirk and Matt. My pleasure. | On Thu, Apr 21, 2011 at 7:49 AM, Dirk Eddelbuettel wrote: | > Random guess: did you connect via ssh without x11 forwarding? | | Almost certainly, yes. (I am an interlocutor right n

Re: [Rd] How to get R to compile with PNG support

2011-04-21 Thread Karl-Dieter Crisman
Thanks for your replies, Dirk and Matt. On Thu, Apr 21, 2011 at 7:49 AM, Dirk Eddelbuettel wrote: > > On 20 April 2011 at 12:16, Karl-Dieter Crisman wrote: > | > | > | R is now configured for i686-pc-linux-gnu > |  Source directory:          . > |  Installation directory:    /home/sageserver

Re: [Rd] R CMD Sweave versus Sweave() on Windows

2011-04-21 Thread Gabor Grothendieck
On Thu, Apr 21, 2011 at 6:44 AM, Pfaff, Bernhard Dr. wrote: > Dear list subscriber, > > I am quite puzzled by the behaviour of processing Sweave files within an R > session, i.e. > Sweave("foo.Rnw") versus R CMD Sweave foo.Rnw > > In the former the environmental variable 'SWEAVE_STYLEPATH_DEFAULT

Re: [Rd] How to get R to compile with PNG support

2011-04-21 Thread Matt Shotwell
On 04/19/2011 05:00 AM, r-devel-requ...@r-project.org wrote: Date: Mon, 18 Apr 2011 11:48:40 -0400 From: Karl-Dieter Crisman To:r-devel@r-project.org Cc: Jason Grout Subject: [Rd] How to get R to compile with PNG support Message-ID: Content-Type: text/plain; charset=windows-1252 Dear R devel lis

Re: [Rd] R CMD Sweave versus Sweave() on Windows

2011-04-21 Thread Pfaff, Bernhard Dr.
> > On Thu, 21 Apr 2011, Pfaff, Bernhard Dr. wrote: > > > Dear list subscriber, > > > > I am quite puzzled by the behaviour of processing Sweave > files within an R session, i.e. > > Sweave("foo.Rnw") versus R CMD Sweave foo.Rnw > > > > In the former the environmental variable > 'SWEAVE_STYLEPA

Re: [Rd] BOOST libraries

2011-04-21 Thread Dirk Eddelbuettel
(Redirected from r-packages, which is supposed to be an annoucements-only list, to r-devel which is for R development questions.) On 21 April 2011 at 08:10, Jay Emerson wrote: | We have used the BOOST interprocess libraries in package bigmemory | (and synchronicity, and ...) for about 3 years now

Re: [Rd] R CMD Sweave versus Sweave() on Windows

2011-04-21 Thread Prof Brian Ripley
On Thu, 21 Apr 2011, Pfaff, Bernhard Dr. wrote: Dear list subscriber, I am quite puzzled by the behaviour of processing Sweave files within an R session, i.e. Sweave("foo.Rnw") versus R CMD Sweave foo.Rnw In the former the environmental variable 'SWEAVE_STYLEPATH_DEFAULT = TRUE' is obeyed (t

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] How to get R to compile with PNG support

2011-04-21 Thread Dirk Eddelbuettel
On 20 April 2011 at 12:16, Karl-Dieter Crisman wrote: | | | R is now configured for i686-pc-linux-gnu | Source directory: . | Installation directory:/home/sageserver/sage/local | C compiler:gcc -std=gnu99 | -I/home/sageserver/sage/local/include | -L/home/sages

Re: [Rd] R CMD Sweave versus Sweave() on Windows

2011-04-21 Thread Kasper Daniel Hansen
Bernd .Renviron is not being read when you do R CMD ... This is documented, but still puzzling to me. I solved this by using Sys.setenv("SWEAVE_STYLEPATH_DEFAULT" = "TRUE") in my .Rprofile (which is being read by R CMD ...). If you were on linux you could also put it inside your shell profile

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] R CMD Sweave versus Sweave() on Windows

2011-04-21 Thread Pfaff, Bernhard Dr.
Dear list subscriber, I am quite puzzled by the behaviour of processing Sweave files within an R session, i.e. Sweave("foo.Rnw") versus R CMD Sweave foo.Rnw In the former the environmental variable 'SWEAVE_STYLEPATH_DEFAULT = TRUE' is obeyed (this is set in etc/Renviron.site as well as under t

Re: [Rd] useDynLib in older versions e.g. (2.10)

2011-04-21 Thread Uwe Ligges
On 21.04.2011 11:30, Tobias Abenius wrote: Dear R-devel, I investigated further by tracing into library.dynam. The .dll file export a symbol "ccd". In e.g. R 2.8.1 the following command succeeds, dyn.load('/Program Files/R/R-2.8.1/library/lassoshooting/libs/i386/lassoshooting.dll') and the e

Re: [Rd] useDynLib in older versions e.g. (2.10)

2011-04-21 Thread Tobias Abenius
Dear R-devel, I investigated further by tracing into library.dynam. The .dll file export a symbol "ccd". In e.g. R 2.8.1 the following command succeeds, dyn.load('/Program Files/R/R-2.8.1/library/lassoshooting/libs/i386/lassoshooting.dll') and the external symbol "ccd" becomes available. H

Re: [Rd] useDynLib in older versions e.g. (2.10)

2011-04-21 Thread Uwe Ligges
On 20.04.2011 13:30, Tobias Abenius wrote: Hi, Has something changed regarding the useDynLib in the NAMESPACE file in packages? I've written a package that works in e.g. 2.12/2.13 but simply cannot find the dynamic library under windows. The version on CRAN is older than the one I'm talking ab

Re: [Rd] Patching "update.packages" to enable updating of only a user defined subset of packages

2011-04-21 Thread Tal Galili
Hi Charlie, thanks for writing back. Using the oldPkgs parameter wouldn't work, please see the error bellow: > update.packages(oldPkgs =c("rpart")) Error in update.packages(oldPkgs = c("rpart")) : invalid 'oldPkgs'; must be a result from old.packages() Do you think it should support this inst

Re: [Rd] Window binary packages built for R 2.13.0 do not work in 2.10.0 (was useDynLib in older versions e.g. (2.10))

2011-04-21 Thread Prof Brian Ripley
On Wed, 20 Apr 2011, Tobias Abenius wrote: Hi, Has something changed regarding the useDynLib in the NAMESPACE file in packages? No. As the FAQ asked re bug reports, please don't post speculation rather than problem description. I've written a package that works in e.g. 2.12/2.13 but simp

Re: [Rd] How to get R to compile with PNG support

2011-04-21 Thread Karl-Dieter Crisman
Followup with the specific issue in our most recent (non-posted, as of yet) attempts on a certain box. We now have xorg-dev, libcairo-dev, and Xwindows.h and libpng (as below) on this machine, but R is not compiling with support for any of these things. Once again, any help knowing *exactly* what

[Rd] useDynLib in older versions e.g. (2.10)

2011-04-21 Thread Tobias Abenius
Hi, Has something changed regarding the useDynLib in the NAMESPACE file in packages? I've written a package that works in e.g. 2.12/2.13 but simply cannot find the dynamic library under windows. The version on CRAN is older than the one I'm talking about and depends on a newer version of R bu