This page has the following sections:

Command recall
Interrupting commands

Starting R in varieties of Unix is quite simple. Just cd to the directory you want, and then type ”R”:

 % R

If there is already a .RData file in that directory, then it will be used to fill the contents of the global environment. If you save when you quit R, then it will overwrite .RData.

If there is not a .RData file in the directory, then the global environment will initially be empty. If you save when you quit R, then it will create .RData.

You can change R’s working directory with the setwd function.

Command recall

You can probably use the arrow keys to recall previous commands and modify them.

If so, then ”control-r” will search for commands that include specified strings. For example, you might search for commands that include ”mean”.

Interrupting commands

You can use control-c to stop a command that is running. Most commands will stop right away, but some will only stop just before they are done.

Back to top level of Impatient R

Back to More R startup

Kommentarer inaktiverade för More R Startup — Linux/Unix

See more

Explore more content and blog posts.

  • jun 25, 26

    Programmers think programming is really hard.  Non-programmers think it’s even harder than that. Figure 1: The perceived difficulty of programming.  Why is programming so arduous? […]

  • jun 25, 26

    Coordinates: 2014 September 15-17 in the London borough of #rstats. 15th, evening I had just the right number of R bugs so that I could walk to the drinks and arrive [...]

  • jun 25, 26

    Navigation gets you from where you are to where you want to be. Speaking of navigation, you can jump to selected sections of this post: Navigation; R-bloggers; Task views; Rdocumentation.org; [...]