> 1+1 |
This may suggest some other possibilities! |
> nn <- 1:5 |
Create in the workspace an integer
vector nn that holds the values 1,2,3,4,5. NB: <- is the assignment symbol. |
> nn | Display (print) the contents of nn |
> ls() | Show the contents of the workspace. You should see "nn" listed. |
> q() | End (quit) the session. When asked if you want to save the workspace, make a habit of clicking on "Yes". This saves everything in the workspace into a file (called .RData, for those who really must know) in the working directory. |
> ls() | Show the contents of the workspace. |
> getwd() | Get the path to the working directory |
> demo() | Gives a list of demos that can be tried |
> demo(graphics) | Show off the graphics. Press the ENTER key to display the
first graph, and to display each successive graph. |
> install.packages("RGtk2", depen=T) |