对于R/RStudio 的最新版本,好像无法安装“rcom”包了;
楼主可以参考一下这个,Windows平台,R 3.0测试可行:
cat("\f");
或则
# An R function to clear the screen on RGui
clc <- function()
{
cat("\f");
}
# clc() # test
# It works well.
# Reference:
#
http://stackoverflow.com/questio ... creen-in-r-rstudio.