Retrieving Variable Declaration

前端 未结 4 1078
攒了一身酷
攒了一身酷 2021-01-25 07:34

How can I find how did I first declare a certain variable when I am a few hundred lines down from where I first declared it. For example, I have declared the following:

4条回答
  •  死守一世寂寞
    2021-01-25 08:03

    You can run grep 'a<-' .Rhistory from terminal (assuming that you've cdd to your working directory). ESS has several very useful history-searching functions, like (comint-history-isearch-backward-regexp) - binded to M-r by default.

    For further info, consult ESS manual: http://ess.r-project.org/Manual/ess.html

提交回复
热议问题