Displaying 3 results from an estimated 3 matches for "shangru".
2012 Dec 15
3
interfacing with .Call
...R *//
UNPROTECT(6);
return(ans);
}
The function "Projector" works well and actually the interface with .C
works OK.
The question is that I can compile it in R, but ".Call" returns different
result each time with same inputs. Could anybody tell me why? Thanks!
Regards
Shangru
--
Department of Mathematics,
National University of Singapore,
Blk S17, 10 Lower Kent Ridge Road,
119076
[[alternative HTML version deleted]]
2012 Dec 06
1
Use .Call interface
...sm' or '__attribute__'
before '{' token
Projector2.c:28:1: error: expected '{' at end of input
make: *** [Projector2.o] Error 1
Warning message:
running command 'R CMD SHLIB Projector2.c Projector.c' had status 1
What's the problem? Thanks all!
Regards
Li Shangru
--
Department of Mathematics,
National University of Singapore,
Blk S17, 10 Lower Kent Ridge Road,
119076
[[alternative HTML version deleted]]
2012 Nov 27
1
calling c function from R
...follow the instruction below using the
example of foo.c
http://www.stat.umn.edu/~charlie/rc/
I saved the foo.c in my work directory. Then I entered the command
R CMD SHLIB foo.c , I got the following message
Error: unexpected symbol in "R CMD"
How did it go wrong? Thanks!
Regards
Shangru Li
[[alternative HTML version deleted]]