Re: [Rd] Compiling R on Linux with SunStudio 12.1: "wide-character type" problems

2010-02-28 Thread rt
he bugs. > > Martyn > > > On Tue, 2010-02-23 at 16:55 -0600, rt wrote: > > Thank you Martyn, > > > > I am one step closer. Using R-patched, configure was successful. > However, > > make exited with an error. > > > > Configure summary: > > I

Re: [Rd] Compiling R on Linux with SunStudio 12.1: "wide-character type" problems (rt)

2010-02-23 Thread rt
n > Ripley in January. If you download R-patched.tar.gz from here: > > ftp://ftp.stat.math.ethz.ch/Software/R/ > > then it should work for you. > > Martyn > > On Mon, 2010-02-22 at 13:11 -0600, rt wrote: > > I am trying to compile R on Linux using SunStudio. Configure fl

[Rd] Compiling R on Linux with SunStudio 12.1: "wide-character type" problems

2010-02-22 Thread rt
I am trying to compile R on Linux using SunStudio. Configure flags are mostly as suggested in the R install guide. CC=/opt/sun/sunstudio12.1/bin/suncc CFLAGS="-g -xc99 -xlibmil -xlibmieee" MAIN_CFLAGS=-g SHLIB_CFLAGS=-g CPPFLAGS="-I. -I/opt/sun/sunstudio12.1/prod/include -I/opt/sun/sunstudio12.1/p

Re: [Rd] R CMD check: OK in LINUX. Crashes in Windows!

2010-02-21 Thread rt
Hi, C code for this problem is embedded. I am not clear about the R_interface.c. I would appreciate if someone could point out problems that may lead to sporadic problems? Thanks, Russ //c_mat.h typedef struct cMatrix { int m; int n; double *d; } c_mat; //c_mat.c vo

Re: [Rd] R CMD check: OK in LINUX. Crashes in Windows!

2010-02-21 Thread rt
but very likely you just had some luck under Ubuntu not to see any crashes... Uwe Ligges On 18.02.2010 18:12, rt wrote: > Hi, > > I have followed the recommended steps for creating a package (rctest). As of > now, my goal is simply to understand how various pieces fit together. The >

[Rd] R CMD check: OK in LINUX. Crashes in Windows!

2010-02-18 Thread rt
Hi, I have followed the recommended steps for creating a package (rctest). As of now, my goal is simply to understand how various pieces fit together. The package includes: (1) C code with source in sub-directories, compiled to create a static library. (a) There is a single C-struct (dns) a simple

[Rd] Compiling R projects with multiple external libraries

2010-02-11 Thread rt
Hi, I have just learned how to use compile and link libraries using "make" and how to create R projects using R CMD build or INSTALL. My understanding of both is somewhat limited and hence the question. I have a main library written in c which depends on other external libraries. Main library is

Re: [Rd] recursive data-structures in R - An S4 "node" Class

2010-01-24 Thread rt
Hi Martin, Thanks for your detailed response. Just examining your code written in the context of my specific problem was helpful. Few thoughts and questions: On Sun, Jan 24, 2010 at 11:40 AM, Martin Morgan wrote: > Hi Russ -- some ideas below... > > On 01/23/2010 06:18 PM, rt wrot

[Rd] recursive data-structures in R - An S4 "node" Class

2010-01-23 Thread rt
Hi, In an effort to learn S4 objects, I am trying to port some c based tree code to S4 object. My immediate goal is to use .Call() interface for calling my c code from R. My long term goal is to understand how to write c structs that follows S4 classes and not the other-way-around. The c struct