[R] Adding comment in C++ code for debugging purpose

Christofer Bogaso bog@@o@chr|@to|er @end|ng |rom gm@||@com
Sat Dec 17 00:32:33 CET 2022


I am using an R package where there are some C++ code.

To check some intermediate values generated by that C++ code, I added
a line like

std::cout << "My values";

Now with this modification, I next build a modified package (source) using

R CMD build

Next I install this modified package using install.packages() function

However during the run-time of the C++ code with above modification, I
dont get any print with "My values"

Can you please help to understand why am not getting that printed?

More information about the R-help mailing list