[R] pause in function execution

Fuchs Ira irafuchs at gmail.com
Tue Feb 10 16:43:46 CET 2009


Oops...forgot to print(getQuote("AAPL").  Sorry.

On Feb 10, 2009, at 10:21 AM, Fuchs Ira wrote:

> I tried using the command-line and indeed it does not buffer so  
> that, for example:
>
> for (i in 1:5) {
> print(x)
> Sys.sleep(3)  }
>
> does as expected.
>
> However, the following sleeps for 15 seconds and then produces no  
> output:
>
> library("quantmod")
>
> for (i in 1:5) {
> getQuote("AAPL")
> Sys.sleep(3)  }
>
> Why is that?
>
> Thanks.
>
>
>
>
> On Feb 9, 2009, at 8:04 PM, Rolf Turner wrote:
>
>>
>> On 10/02/2009, at 1:46 PM, Fuchs Ira wrote:
>>
>>> The binary in R.app starts the GUI. I suppose I would have to  
>>> install
>>> the command-line version separately.
>>
>> On my machine there is a ``file'' /usr/bin/R which is actually a  
>> symbolic
>> link to /Library/Frameworks/R.framework/Resources/bin/R.
>>
>> The latter is an executable shell script.
>>
>> At the command line in a window you should be able to just type
>>
>> 	R
>>
>> or (if /usr/bin is not in your path)
>>
>> 	/usr/bin/R
>>
>> or (if the symbolic link is not present in /usr/bin)
>>
>> 	/Library/Frameworks/R.framework/Resources/bin/R
>>
>> and get R going.  In such a way as not to invoke the AQUA GUI.
>>
>> If this doesn't work, I'm afraid I'm out of ideas.
>>
>> If the last option works, then you should create the symbolic link  
>> in /usr/bin
>> (and make sure that /usr/bin is in your path).  Then you'll be able  
>> to start
>> simply by typing ``R''.
>>
>> 	cheers,
>>
>> 		Rolf Turner
>>
>>
>> ######################################################################
>> Attention:This e-mail message is privileged and confidential. If  
>> you are not theintended recipient please delete the message and  
>> notify the sender.Any views or opinions presented are solely those  
>> of the author.
>>
>> This e-mail has been scanned and cleared by  
>> MailMarshalwww.marshalsoftware.com
>> ######################################################################
>




More information about the R-help mailing list