[R] Script question

William Dunlap wdunlap at tibco.com
Sat Mar 8 04:19:15 CET 2014


Try adding the echo=TRUE argument to your source() comand,
or perhaps just print.eval=TRUE.

Bill Dunlap
TIBCO Software
wdunlap tibco.com


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf
> Of Milton O Faison
> Sent: Friday, March 07, 2014 6:51 PM
> To: r-help at r-project.org
> Subject: Re: [R] Script question
> 
> My apologies.  The crux of my question is why doesn't a script function the same when
> called from the source command as it does when cut and paste into R; however, I will
> provide the script, the correct output from cutting and pasting, and the faulty output
> from the source command within the next day
> 
> 
> o
> 
> M. Omar Faison, PhD
> Director, Office of Sponsored Programs and Research
> Virginia State University
> 804-631-3330
> http://twitter.com/omarfaison
> 
> 
> -------- Original message --------
> From: "MacQueen, Don"
> Date:03/05/2014 2:26 PM (GMT-05:00)
> To: Milton O Faison ,r-help at r-project.org
> Subject: Re: [R] Script question
> 
> You haven't said what, exactly, "doesn't execute properly" means (please
> read the posting guide).
> 
> At a guess, you need to put
>   print()
> around the expressions whose output you aren't seeing.
> 
> -Don
> 
> --
> Don MacQueen
> 
> Lawrence Livermore National Laboratory
> 7000 East Ave., L-627
> Livermore, CA 94550
> 925-423-1062
> 
> 
> 
> 
> 
> On 3/5/14 6:19 AM, "Milton O Faison" <MFaison at vsu.edu> wrote:
> 
> >I have a script that works fine if I copy the whole thing from from a
> >text editor and paste it into R, but doesn't execute properly if the file
> >is called by the source command. Any clues on how to fix this? I can post
> >the script if necessary.
> >
> >o
> >
> >M. Omar Faison, PhD
> >Director, Office of Sponsored Programs and Research
> >Virginia State University
> >804-631-3330
> >http://twitter.com/omarfaison
> >
> >________________________________
> >³The information in this email and any attachments may be confidential
> >and privileged. Access to this email by anyone other than the intended
> >addressee is unauthorized. If you are not the intended recipient (or the
> >employee or agent responsible for delivering this information to the
> >intended recipient) please notify the sender by reply email and
> >immediately delete this email and any copies from your computer and/or
> >storage system. The sender does not authorize the use, distribution,
> >disclosure or reproduction of this email (or any part of its contents) by
> >anyone other than the intended recipient(s).
> >
> >No representation is made that this email and any attachments are free of
> >viruses. Virus scanning is recommended and is the responsibility of the
> >recipient.²
> >
> >       [[alternative HTML version deleted]]
> >
> 
> 
> ________________________________
> "The information in this email and any attachments may be confidential and privileged.
> Access to this email by anyone other than the intended addressee is unauthorized. If you
> are not the intended recipient (or the employee or agent responsible for delivering this
> information to the intended recipient) please notify the sender by reply email and
> immediately delete this email and any copies from your computer and/or storage
> system. The sender does not authorize the use, distribution, disclosure or reproduction of
> this email (or any part of its contents) by anyone other than the intended recipient(s).
> 
> No representation is made that this email and any attachments are free of viruses. Virus
> scanning is recommended and is the responsibility of the recipient."
> 
> 	[[alternative HTML version deleted]]




More information about the R-help mailing list