Undo command in R

后端 未结 2 1274
自闭症患者
自闭症患者 2020-12-28 23:08

I can\'t find something to the effect of an undo command in R (neither on An Introduction to R nor in R in a Nutshell). I am particularly interested in undoing/deleting when

2条回答
  •  囚心锁ツ
    2020-12-28 23:13

    You should consider a different approach which leads to reproducible work:

    • Pick an editor you like and which has R support
    • Write your code in 'snippets', ie short files for functions, and then use the facilities of the editor / R integration to send the code to the R interpreter
    • If you make a mistake, re-edit your snippet and run it again
    • You will always have a log of what you did

    All this works tremendously well in ESS which is why many experienced R users like this environment. But editors are a subjective and personal choice; other people like Eclipse with StatET better. There are other solutions for Mac OS X and Windows too, and all this has been discussed countless times before here on SO and on other places like the R lists.

提交回复
热议问题