How can I send selected text (or a line) in TextMate to R running on Terminal

后端 未结 2 1956
悲&欢浪女
悲&欢浪女 2020-12-30 14:12

I just started using R on Terminal because its tab function. But I have no idea how to send the selected text in TextMate to the Terminal. Could expertise show me how to wri

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-30 15:11

    TextMate is MacOS, right? Is so, then this is from the R ?connections page:

    "Mac OS X users can use pipe("pbpaste") and pipe("pbcopy", "w") to read from and write to that system's clipboard."

    You can "paste" from R-Clipboards into Terminal sessions. You can also send file content from TextMate: http://manual.macromates.com/en/shell_commands#executing_commands_filtering_text

提交回复
热议问题