> From krylov.r00t at gmail.com Tue Nov 2 14:22:05 2021
> instead. When you source() a script, auto-printing is not performed. This
> is explained in the first paragraph of ?source, but not ?sink. If you want
> to source() scripts and rely on their output (including sink()), you'll
> need to print() results explicitly.
------------------> From akwsimmo at gmail.com Tue Nov 2 14:31:26 2021
> Date: Tue, 2 Nov 2021 17:31:12 -0400
> cat in R behaves similarly to cat in unix-alikes, sends text to a stdout.
> Usually, that stdout would be a file, but usually in R it is the R
> Console. I think it might also help to note the difference between cat and
> print:
> x <- "test\n"
> cat(x)
> print(x)
> produces
> cat(x)
> test
> print(x)
> [1] "test\n"
Ivan/Andrew,
Thank you both for increasing my knowledge of R. I've not before used sink()
and now I can use it properly. The issues are resolved.
Regards,
Rich