For example, if I had a file tmp2.R containing:
(x1=1)
(x2=2)
(x3=3)
x1
x2
x3
Then sourcing the file generates the following:
> source("tmp2.R",echo=TRUE)
> (x1=1)
[1] 1
> (x2=2)
[1] 2
> (x3=3)
[1] 3
> x1
[1] 1
> x2
[1] 2
> x3
[1] 3
Matlab has a similar default behaviour which spaces things out. I can have it squeeze out the blank lines by the command 'format compact'. The effect would be:
> source("tmp2.R",echo=TRUE)
> (x1=1)
[1] 1
> (x2=2)
[1] 2
> (x3=3)
[1] 3
> x1
[1] 1
> x2
[1] 2
> x3
[1] 3
You can see much more on the screen. Just wondering if there is a way to get this effect in R?