Displaying 1 result from an estimated 1 matches for "testres2".
Did you mean:
testres
2012 Sep 20
1
R/C++ interfaces: crashes when using .c(), followed by correct results when R restarted
...ain steps I undertook:
* After having modified the script with the C++ code, I compiled it using R CMD SHLIB mylatestversion.cpp - no problems occurred then.
* Next, I loaded the dll into R with
dyn.load("C:\\Ccodefortransortmodel\\ mylatestversion.dll")
* Next, I called equil_distC with
testres2 <- .C("equil_distC", as.integer(rowmaxfiets),as.integer(colmaxfiets), as.double(nodes), as.integer(links_dist_calc), as.integer(cyclepathsfirstline), as.integer(numzones), as.integer(numnodes), as.integer(numlinks), result = double(6))
* About half of the time, whenever I had changed t...