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

2011-04-21 Thread Karl-Dieter Crisman
Message: 12 Date: Wed, 20 Apr 2011 02:09:23 -0700 (PDT) From: Sharpie ch...@sharpsteen.net 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-Type: text/plain; charset=UTF-8 Dear R devel list,

Re: [Rd] Sweave tokens not in column 1: enhancement request

2011-04-21 Thread David.Epstein
Friedrich Leisch-2 wrote: On Tue, 19 Apr 2011 13:59:44 -0700 (PDT), David Epstein (DE) wrote: When I re-use a code chunk in Sweave, together with keep.source=TRUE, I would like to follow usual programming conventions in which the amount of white space on the left indicates

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

2011-04-21 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

[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

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*

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 instead

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

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.

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

[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

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

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] 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 |

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 my

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

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

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_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 Crismankcris...@gmail.com To:r-devel@r-project.org Cc: Jason Groutjason.gr...@drake.edu Subject: [Rd] How to get R to compile with PNG support

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. bernhard_pf...@fra.invesco.com 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

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 e...@debian.org 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:    

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 e...@debian.org wrote: | Random guess: did you connect via ssh without x11 forwarding? | | Almost certainly, yes. (I am an

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 e...@debian.org wrote: On 20 April 2011 at 12:16, Karl-Dieter Crisman wrote: | | | R is now configured for i686-pc-linux-gnu |

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++ to the

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 same

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:

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 ch...@sharpsteen.net 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

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

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

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 McGuffee

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

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

[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] 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

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