必承其重 | 欲带皇冠 2013-01-10 14:37 采纳率: 0%
浏览 470
已采纳

函数清除 r 和 RStudio 中的控制台

I am wondering if there is a function to clear the console in R and, in particular, RStudio I am looking for a function that I can type into the console, and not a keyboard shortcut.

Someone has already provided such a function in this StackExchange post from 2010. Unfortunately, this depends on the RCom package and will not run on Mac OS X.

转载于:https://stackoverflow.com/questions/14260340/function-to-clear-the-console-in-r-and-rstudio

  • 写回答

11条回答 默认 最新

  • 游.程 2013-04-18 13:49
    关注
    cat("\014")  
    

    is the code to send <kbd>CTRL</kbd>+<kbd>L</kbd> to the console, and therefore will clear the screen.

    Far better than just sending a whole lot of returns.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(10条)

报告相同问题?

悬赏问题

  • ¥15 winform的chart曲线生成时有凸起
  • ¥15 msix packaging tool打包问题
  • ¥15 finalshell节点的搭建代码和那个端口代码教程
  • ¥15 用hfss做微带贴片阵列天线的时候分析设置有问题
  • ¥15 Centos / PETSc / PETGEM
  • ¥15 centos7.9 IPv6端口telnet和端口监控问题
  • ¥120 计算机网络的新校区组网设计
  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 海浪数据 南海地区海况数据,波浪数据