[R] Script question

Richard M. Heiberger rmh at temple.edu
Sat Mar 8 03:57:19 CET 2014


Don MacQueen's answer was probably correct.

Please see FAQ 7.16 for details.


On Fri, Mar 7, 2014 at 9:51 PM, Milton O Faison <MFaison at vsu.edu> wrote:
> 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]]
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.
>




More information about the R-help mailing list