a) This is not the Rcpp help list. b) Writing to stdout without going through R is not supported in packages. Do read the Writing R Extensions manual.
On December 16, 2022 3:32:33 PM PST, Christofer Bogaso <bogaso.christo...@gmail.com> wrote: >Hi, > >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? > >______________________________________________ >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code. -- Sent from my phone. Please excuse my brevity. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.