Re: [Rd] C vs. C++ as learning and development tool for R

2007-01-20 Thread Peter Dalgaard
Roger Bivand wrote: > Just [use] MinGW like R [does], following the guides to the letter gets you > there like > marked stones across a marsh. Leaving the path usually gets you at best > neck deep in the mire, alternatively just bubbles. That's the strongest contender for a space in the fortune f

Re: [Rd] C vs. C++ as learning and development tool for R

2007-01-19 Thread Vladimir Dergachev
On Friday 19 January 2007 6:46 pm, Ross Boylan wrote: > On Fri, Jan 19, 2007 at 03:55:30AM -0500, Kimpel, Mark William wrote: > I can't say much about "libraries already on other machines", but the > C runtime is probably the one you can count on being there the most. Well, I don't think it is the

Re: [Rd] C vs. C++ as learning and development tool for R

2007-01-19 Thread Charles C. Berry
On Sat, 20 Jan 2007, Roger Bivand wrote: > On Fri, 19 Jan 2007, Kimpel, Mark William wrote: > >> Thanks to all for your excellent suggestions. I think will I proceed [snip] Commenting on writing R packages with portable C/C++ code: > > [F]ollowing the guides to the letter gets you there like >

Re: [Rd] C vs. C++ as learning and development tool for R

2007-01-19 Thread Roger Bivand
On Fri, 19 Jan 2007, Kimpel, Mark William wrote: > Thanks to all for your excellent suggestions. I think will I proceed > working through the Stroustrup book. He has a section on comparing C > with C++ and one on working with legacy C code that may prove helpful. I > also have a "C for Dummies" (s

Re: [Rd] C vs. C++ as learning and development tool for R

2007-01-19 Thread Ross Boylan
On Fri, Jan 19, 2007 at 03:55:30AM -0500, Kimpel, Mark William wrote: > I have 3 years of experience with R and have an interest in becoming a > better programmer so that I might someday be able to contribute > packages. Other than R, my only experience was taking Lisp from Daniel > Friedman in the

Re: [Rd] C vs. C++ as learning and development tool for R

2007-01-19 Thread Duncan Murdoch
On 1/19/2007 10:04 AM, Kimpel, Mark William wrote: > Thanks to all for your excellent suggestions. I think will I proceed > working through the Stroustrup book. He has a section on comparing C > with C++ and one on working with legacy C code that may prove helpful. I > also have a "C for Dummies" (

Re: [Rd] C vs. C++ as learning and development tool for R

2007-01-19 Thread Kimpel, Mark William
Thanks to all for your excellent suggestions. I think will I proceed working through the Stroustrup book. He has a section on comparing C with C++ and one on working with legacy C code that may prove helpful. I also have a "C for Dummies" (something like that, I don't have it right next to me) that

Re: [Rd] C vs. C++ as learning and development tool for R

2007-01-19 Thread Vladimir Dergachev
On Friday 19 January 2007 1:29 pm, Gabor Grothendieck wrote: > > If you decide to use C++ with R you should check out the documentation > > that comes with the package RcppTemplate, and the sample code that > > comes with that package. In my experience C++ (or C or FORTRAN) is > > needed for many c

Re: [Rd] C vs. C++ as learning and development tool for R

2007-01-19 Thread Gabor Grothendieck
On 1/19/07, Dominick Samperi <[EMAIL PROTECTED]> wrote: > Kimpel, Mark William wrote: > > I have 3 years of experience with R and have an interest in becoming a > > better programmer so that I might someday be able to contribute > > packages. Other than R, my only experience was taking Lisp from Da

Re: [Rd] C vs. C++ as learning and development tool for R

2007-01-19 Thread Dominick Samperi
Kimpel, Mark William wrote: > I have 3 years of experience with R and have an interest in becoming a > better programmer so that I might someday be able to contribute > packages. Other than R, my only experience was taking Lisp from Daniel > Friedman in the 1970's. I would like to learn either C or

Re: [Rd] C vs. C++ as learning and development tool for R

2007-01-19 Thread Dirk Eddelbuettel
Mark, Great question. As Gabor said, if it is "just for R", there is no point in learning C or C++. However, learning new programming paradigms is very useful in and by itself, and being able to extend R with C, C++ or Fortran is extremely useful for R. I would suggest what I jokingly call 'C+'

Re: [Rd] C vs. C++ as learning and development tool for R

2007-01-19 Thread Ramon Diaz-Uriarte
Dear Mark, On Friday 19 January 2007 09:55, Kimpel, Mark William wrote: > I have 3 years of experience with R and have an interest in becoming a > better programmer so that I might someday be able to contribute > packages. Other than R, my only experience was taking Lisp from Daniel > Friedman in

Re: [Rd] C vs. C++ as learning and development tool for R

2007-01-19 Thread Gabor Grothendieck
You don't necessarily need to know C or C++ to write an R package. Many (maybe most) R packages only use R. On 1/19/07, Kimpel, Mark William <[EMAIL PROTECTED]> wrote: > I have 3 years of experience with R and have an interest in becoming a > better programmer so that I might someday be able to co

Re: [Rd] C vs. C++ as learning and development tool for R

2007-01-19 Thread Duncan Murdoch
On 1/19/2007 3:55 AM, Kimpel, Mark William wrote: > I have 3 years of experience with R and have an interest in becoming a > better programmer so that I might someday be able to contribute > packages. Other than R, my only experience was taking Lisp from Daniel > Friedman in the 1970's. I would lik

[Rd] C vs. C++ as learning and development tool for R

2007-01-19 Thread Kimpel, Mark William
I have 3 years of experience with R and have an interest in becoming a better programmer so that I might someday be able to contribute packages. Other than R, my only experience was taking Lisp from Daniel Friedman in the 1970's. I would like to learn either C or C++ for several reasons: To gain a