在R中维护输入/输出日志 [英] maintaining an input / output log in R

查看:56
本文介绍了在R中维护输入/输出日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在与R交互工作时,是否有一种简单的方法可以使R将R会话中的所有输入和输出记录到磁盘上?

Is there an easy way to have R record all input and output from your R session to disk while you are working with R interactively?

Mac OS XR.app中,我可以执行File->Save...,但是对于恢复R崩溃时输入的命令并没有太大帮助.

In R.app on Mac OS X I can do a File->Save..., but it isn't much help in recovering the commands I had entered when R crashes.

我尝试使用sink(...,split=T),但是它似乎并不能完全满足我的需求.

I have tried using sink(...,split=T), but it doesn't seem to do exactly what I am looking for.

推荐答案

出于这个原因,我们许多人使用ESS/Emacs.保存扩展名为'.Rt'的旧会话,甚至可以提供特定于模式的命令来重新运行部分会话.

Many of us use ESS / Emacs for this very reason. Saving old sessions with extension '.Rt' even gives you mode-specific commands for re-running parts of your session.

这篇关于在R中维护输入/输出日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆