Re: [R] Running script with double-click

2010-03-05 Thread Matt Asher
2.10.1\bin\Rterm.exe" --quiet --no-save --no-restore -f "%1" If/when you have a different version of R installed, you'll need to adjust the above command. Steve *From: * Matt Asher *To:* *Date: *5/Mar/2010 12:45p *Subject: * [R] Running script with double-c

[R] Running script with double-click

2010-03-04 Thread Matt Asher
Hi, I need to be able to run an R script by double-clicking the file name in Windows. I've tried associating the .r extension with the different R .exe's in /bin but none seems to work. Some open R then close right away, and Rgui.exe gives the message ARGUMENT "/my/file.r" __ignored__ before

Re: [R] Problem accessing sub-methods of functions stored in a vector

2010-02-26 Thread Matt Asher
anguages). I am basically treating my agent function like a class that can have instances and class vars, without having to use R's backwards (IMO) way of doing OOP. Cheers. On 26.02.2010 16:33, Matt Asher wrote: Hi folks, I am having trouble accessing sub-functions when the main fun

[R] Problem accessing sub-methods of functions stored in a vector

2010-02-26 Thread Matt Asher
Hi folks, I am having trouble accessing sub-functions when the main function is stored in an array. For example, the following test code works fine: fcns = c(abs, sqrt) fcns[[1]](-2) fcns[[2]](2) However, when I try to access sub-functions declared within list() in a function, this only work