io - How to use Pascal code in R-project? -
i using r-project deal statistics, due amount of resources needed, r struggling while pascal way faster. there way use pascal code in r-project?
if can compile dll (windows) or .so (unix) file might able use same mechanism used c , fortran. load dll/.so dyn.load() function , call .c("functionname").
however, dependent on operating system, compiler, , code.
r helps fortran , c programmers providing shlib command. 1 does:
r cmd shlib foo.f
and gets foo.so back. dyn.load("foo.so") , can call fortran code .c("subname",as.integer(1),as.double(pi)) , on.
perhaps if can convert pascal c (is there 'p2c' converter?).
Comments
Post a Comment