Closed jenniferthompson closed 6 years ago
Gist of exact code I've been using (copied from vignette)
This works fine for me on Ubuntu 16.04.5, matching another reviewer's experience.
Hmm that's odd. I'll have a quick look at that as it worked fine on the Mac check on CRAN
Let me know if I can help with detective work! It seemed to install fine on my machine, though I just reinstalled and noticed this warning:
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I/usr/local/include -fPIC -Wall -g -O2 -c simulation.cpp -o simulation.o
simulation.cpp:30:35: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
nstate.add_transition(std::move(Transition::create_transition(trans_name, dest, as<List>(this_trans["coefs"]), tcovs)));
^
simulation.cpp:30:35: note: remove std::move call here
nstate.add_transition(std::move(Transition::create_transition(trans_name, dest, as<List>(this_trans["coefs"]), tcovs)));
^~~~~~~~~~ ~
1 warning generated.
Can you try reinstalling from the CRAN development branch and see if that fixes it? If not, try reinstalling the data.table
package as that could be partly causing it.
Installing the development branch seems to have done it! All the multistateutils
functions in the Examples document run on my machine now. 🎉
I'm on macOS 10.13.6 (High Sierra), running the code in the example vignette, and have consistently had R crash at the point in the vignette when
predict_transitions()
is first called. (Will include session info below.) I'm using the CRAN version ofmultistateutils
- happy to try the development version if that would help, or stick to CRAN to help debug.flexsurv::pmatrix.simfs()
does work and gives the expected results per the vignette.Session info: