Skip to content
Back to formatted view

Raw Message

Message-ID: <3D6B37B0-ECF3-4F13-9F7E-8B20383035FF@gmail.com>
Date: 2009-02-10T15:21:41Z
From: Fuchs Ira
Subject: pause in function execution
In-Reply-To: <800F5D91-18E4-4BBA-8D9F-9DC608F148FF@auckland.ac.nz>

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
> ######################################################################