Displaying 1 result from an estimated 1 matches for "mylatestversion".
Did you mean:
latestversion
2012 Sep 20
1
R/C++ interfaces: crashes when using .c(), followed by correct results when R restarted
...f the time although I had not modified the C++ code.
Although the code runs correctly now, I am not sure why it does work right now, and didn't just an hour ago.
Let me summarize the main 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(link...