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