Concept Flow - First R program
Start R script
Run cat("Hello, world!")
Display output on console
End program
The program starts, runs the cat command to show text, then ends.
cat("Hello, world!")| Step | Action | Code Evaluated | Output |
|---|---|---|---|
| 1 | Execute cat function | cat("Hello, world!") | Hello, world! |
| 2 | Program ends | No more code | No output |
| Variable | Start | After Step 1 | Final |
|---|---|---|---|
| No variables | N/A | N/A | N/A |
cat("text")
- Shows text on the console
- Runs code line by line
- No variables needed
- Program ends after last line