Displaying 3 results from an estimated 3 matches for "my_c".
Did you mean:
my_
2007 Jan 19
5
Problem with C extension
Hello,
I try to write an extension in C, to get a faster functions.
Therefore I have to add an element (vector) to a vector. The command in
R is very simple: x = c(x,a)
But in C I have the problem to reallocate my vector for getting more
space. Everything I tried, I get a "Segmentation fault".
So, how can I combine two vectors in C and give the result back to R
(return(x))?
Thanks
2009 Dec 10
0
R CMD SHLIB requesting makefile. Is a makefile required?
A few years ago I used the following to compile a shared object that I
wanted to call from R and it worked just fine.
R CMD SHLIB -o ~/my_C/R.shared.so/cocite.mat.so cocite.mat.c
Now when it is executed?I receive the following error message:
make: *** No rule to make target `cocite.mat.o', needed by
`/home/mkimpel/my_C/R.shared.so/cocite.mat.so'. Stop.
I've consulted R CMD SHLIB --help and R-exts.pdf and neither indicates...
2008 Jan 22
0
calling MPI parallel C code from R
...happy to share more of my R and C
code if that is helpful, but I wanted to avoid a very long post at this
point.
Thanks,
Mark
> dyn.load(x = c.code, local = TRUE, now = TRUE)
Error in dyn.load(x = c.code, local = TRUE, now = TRUE) :
unable to load shared library
'/N/u/mkimpel/BigRed/my_C/R.shared.so/cocite.mat.true.parallel.so':
/N/u/mkimpel/BigRed/my_C/R.shared.so/cocite.mat.true.parallel.so:
undefined symbol: ompi_mpi_comm_world
> sessionInfo()
R version 2.7.0 Under development (unstable) (2008-01-05 r43880)
powerpc64-unknown-linux-gnu
locale:
LC_CTYPE=en_US.UTF-8;L...