通常在我的机器上,我可以向后搜索R的历史记录,方法是输入想要向后搜索的命令的所需首字符,然后使用PageUp或PageDown键遍历R中的所有条目历史。历史向后搜索R
我现在在远程集群中作为来宾工作,并且此选项在本机中不可用。
有没有人有我可以在哪里添加此功能的R的想法?
编辑:我感兴趣的关键绑定,而不是如何重现此功能。
编辑2:我在Fedora 16机器上本地化;远程CentOS版本5.3(最终)
通常在我的机器上,我可以向后搜索R的历史记录,方法是输入想要向后搜索的命令的所需首字符,然后使用PageUp或PageDown键遍历R中的所有条目历史。历史向后搜索R
我现在在远程集群中作为来宾工作,并且此选项在本机中不可用。
有没有人有我可以在哪里添加此功能的R的想法?
编辑:我感兴趣的关键绑定,而不是如何重现此功能。
编辑2:我在Fedora 16机器上本地化;远程CentOS版本5.3(最终)
我发现在哪里看,以告诉R如何表现。
关键是修改我的〜/ .inputrc文件,因为它是R的输入法的参考。
我从我的本地Fedora 16/etc/inputrc中使用了相同的文件,并将其作为〜/ .inputrc复制到远程群集中。该文件看起来像这样
# do not bell on tab-completion
#set bell-style none
set meta-flag on
set input-meta on
set convert-meta off
set output-meta on
# Completed names which are symbolic links to
# directories have a slash appended.
set mark-symlinked-directories on
$if mode=emacs
# for linux console and RH/Debian xterm
"\e[1~": beginning-of-line
"\e[4~": end-of-line
# commented out keymappings for pgup/pgdown to reach begin/end of history
#"\e[5~": beginning-of-history
#"\e[6~": end-of-history
"\e[5~": history-search-backward
"\e[6~": history-search-forward
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word
"\e[1;5C": forward-word
"\e[1;5D": backward-word
# for rxvt
"\e[8~": end-of-line
"\eOc": forward-word
"\eOd": backward-word
# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
"\eOH": beginning-of-line
"\eOF": end-of-line
# for freebsd console
"\e[H": beginning-of-line
"\e[F": end-of-line
$endif
"\e[5~": history-search-backward
"\e[6~": history-search-forward
history(pattern="lm\\(") # finds lines with lm or glm calls
有各种各样的历史机制,它可能是你的控制台看也不会是相同的,因为这其中的历史的通话将被访问。阅读“历史记录”页面的“详细信息”部分。
更具体的问题请问......你通常与什么环境/ IDE交互,以及它是什么作为远程访客? – Thell
对不起,谢谢你的评论。够了吗?或者其他类型的信息有用吗? – pedrosaurio