1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

R / RStudio > コマンドヒストリ機能 > 過去のコマンドの再実行

Last updated at Posted at 2016-09-20
動作環境
RStudio 0.99.903 on Windows 7 pro
R version 3.3.1

過去に実行したコマンドを選択して実行する機能。

参考 https://support.rstudio.com/hc/en-us/articles/200526217-Command-History

RStudioの右上に「History」タブがある。
ここで過去に実行したコマンドを選択して「To Console」でConsoleにそれらのコマンドを送ることができる。
そしてConsoleにてEnterを押すと、それらコマンドを実行できる。

ファイルを変更しながら、同じ処理を実行したいときなどに使える。

Historyタブ内のコマンド選択はCtrlを押しながら選択すると非連続の選択ができる。

Console内でもカーソル上下で過去のコマンドを探すことはできるが、Historyタブの方が閲覧性が良い。

「To Console」で送った複数行のコマンドは、Console内のカーソル上下で再度複数行実行できるので、Historyタブ機能と組合せるとさらに使い勝手がよい。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?