Re: [Rd] g++ 4.3 warning: deprecated conversion from string constant to ‘char*’3DIn-Reply-To: <4 [EMAIL PROTECTED]>

2008-04-03 Thread Andrew Finley
Hi Kurt and Brian, I was using R 2.6.2. Now, based on your suggestion, I've upgrade to 2.7.0 and am no longer mixing compilation versions of gcc/g++. The constant to char* warnings are gone. Thanks! -Andy Kurt Hornik wrote: >>>>>> Andrew Finley writes: > >> He

[Rd] g++ 4.3 warning: deprecated conversion from string constant to ‘char*’

2008-04-03 Thread Andrew Finley
/local/lib -o splmDIC.so splmDIC.o covmodel.o util.o -L/usr/local/lib/R/lib -lRlapack -L/usr/local/lib/R/lib -lRblas -L/usr/lib/gcc/i486-linux-gnu/3.4.6 -lg2c -lm -lgcc_s Thanks for your time. Kind regards- Andy -- Andrew Finley, PhD Natural Resources Building Michigan State University East Lansin

Re: [Rd] knnFinder package

2008-01-18 Thread Andrew Finley
gt; > > > -- > Roger Bivand > Economic Geography Section, Department of Economics, Norwegian School of > Economics and Business Administration, Helleveien 30, N-5045 Bergen, > Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 > e-mail: [EMAIL PROTECTED] > >

Re: [Rd] How to prepare/submit packages with external dependency?

2006-08-04 Thread Andrew Finley
anek wrote: > Andrew, > > On Aug 4, 2006, at 4:49 PM, Andrew Finley wrote: > > > I'd like to submit a new package that ports some code which uses > > the boost c++ library (i.e., an external dependency). I have > > written a linux/unix configure file as de

[Rd] How to prepare/submit packages with external dependency?

2006-08-04 Thread Andrew Finley
Hello, I'd like to submit a new package that ports some code which uses the boost c++ library (i.e., an external dependency). I have written a linux/unix configure file as described in the Witting R Extensions but don't know enough about windows to write a windows configure/makefile. That said,

[Rd] random NaN in dpotri result

2006-04-28 Thread Andrew Finley
Hello all, In a piece of c++ code (part of a future R package), I'm inverting a relatively large covariance matrix many times using: F77_CALL(dpotrf)(&upper, &xnrow, R, &xnrow, &info); F77_CALL(dpotri)(&upper, &xnrow, R, &xnrow, &info); I am sure that the input matrix is PD and inverts just fine

Re: [Rd] change function's formals default values

2006-04-04 Thread Andrew Finley
Your example is perfectly clear. I'll take your suggestion. Thanks a lot for your time- Andrew On Tue, 2006-04-04 at 10:00 -0700, Thomas Lumley wrote: > On Tue, 4 Apr 2006, Andrew Finley wrote: > > > Hi Thomas, > > > > Thanks for the note. I'm not sure

Re: [Rd] change function's formals default values

2006-04-04 Thread Andrew Finley
> On Mon, 3 Apr 2006, Andrew Finley wrote: > > > Hello, > > > > I'm passing a user defined function into my c code. Once this function > > is in my c code, I'd like to iteratively change the values associated > > with the parameters defined in the funct

[Rd] change function's formals default values

2006-04-03 Thread Andrew Finley
Hello, I'm passing a user defined function into my c code. Once this function is in my c code, I'd like to iteratively change the values associated with the parameters defined in the function's formal list then evaluate the function using these newly set defaults (i.e., using lang1(fn)). My quest

Re: [Rd] Rcpp, best method for linking to

2006-02-24 Thread Andrew Finley
Hi Andy, Follow the suggestions for c++ in the Writing R Extensions document. Wrap your c++ code in extern "C"{}, include your classes in the includes (e.g., #include "myclass.h") and put the myclass.h and myclass.cpp in the src directory along with your other code. Then R CMD build ... and R CMD I

[Rd] Calling R functions from C and setting function's formal list values

2006-02-16 Thread Andrew Finley
Hello, I am writing an extension that requires the user to pass a function into the C code. The function returns a covariance matrix. The user defines an arbitrary set of parameters as the function's arguments, which are used to construct this covariance matrix. Within the C code these parameters

[Rd] Rprintf loop status does not print under windows

2006-02-04 Thread Andrew Finley
but under windows the status is not printed. Am I missing something? Thanks- Andy -- Andrew Finley, Research Fellow Department of Forest Resources College of Natural Resources University of Minnesota 305 Green Hall 1530 Cleveland Avenue N. St. Paul, MN 55108 Ph 612-624-1714 office http://blue.

[Rd] Using STL containers in R/C++

2006-01-04 Thread Andrew Finley
any other packages that use STL. So, my question: is it OK to use the STL containers in my code? Will the use of this library somehow limit portability of this package? Or cause memory management problems? Thanks- Andy Andrew Finley, Research Fellow Department of Forest Resources College of Natural