Still not clear (to me). But perhaps FAQ 7.16. You need to explicitly print or use echo = TRUE when sourcing from a file.
Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Fri, Jan 1, 2016 at 10:25 AM, Ragia Ibrahim <ragi...@hotmail.com> wrote: > yes, the script prints that on the scree, when I used pd file to do the job > only ggplots appears on it ! > > hope this clarifies, thanks . > Ragia > > ---------------------------------------- >> Date: Thu, 31 Dec 2015 17:19:35 -0800 >> Subject: Re: [R] save screen printed data frames and ggplots into a file >> From: bgunter.4...@gmail.com >> To: ragi...@hotmail.com >> CC: r-help@r-project.org >> >> Does what? You said you already have a script. >> >> **If** you want to program it as a function, then I suggest that you >> do some homework and go through an R tutorial, e.g. the "Intro to R" >> that ships with R or one of the many available on the web. >> >> If that is not what you mean, then clarify. >> >> Cheers, >> Bert >> Bert Gunter >> >> "The trouble with having an open mind is that people keep coming along >> and sticking things into it." >> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) >> >> >> On Thu, Dec 31, 2015 at 4:46 PM, Ragia Ibrahim <ragi...@hotmail.com> wrote: >>> Dear group >>> I have a script that prints data frames and plot using ggplot 2 while >>> running, >>> how can I do this >>> thanks in advance >>> Ragia >>> ______________________________________________ >>> 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.