Hello Thank you all for most useful responses. I was looking for answers in the wrong place, that is why I have not responded before!
Tom Backer Johnsen > On 7 Nov 2017, at 21:25, Rui Barradas <ruipbarra...@sapo.pt> wrote: > > Hello, > > Try > > print(head(...)) > > Hope this helps, > > Rui Barradas > > Em 07-11-2017 20:01, Tom Backer Johnsen escreveu: >> Dear R-help, >> >> I am running a Mac under Sierra, with R version 3.4.2 and RStudio 1.1.383. >> When running head () or tail () on an object in a script using source >> (<script name>) nothing appears in the output file, but if I use these >> commands in the normal R window the normal output appears. >> >> What am I doing wrong? >> >> Tom Backer Johnsen >> University of Bergen >> Norway >> ______________________________________________ >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.