开发者

How to display c++ output message in windows R

开发者 https://www.devze.com 2023-04-03 23:03 出处:网络
My R function is calling a c++ code which will \"cout\" some lines during its iterations, I can see this lines in windows R called by Command Prompt. But I could not see anything when I directly o开发

My R function is calling a c++ code which will "cout" some lines during its iterations, I can see this lines in windows R called by Command Prompt. But I could not see anything when I directly o开发者_C百科pen R in windows os.

I wonder is there any way to see the c++ output from R under windows but not in command prompt? Or if not, can R display something while it’s calling c++ at background?

Thank you for your help.


See the Printing section of Writing R Extensions. You want Rprintf.

0

精彩评论

暂无评论...
验证码 换一张
取 消