[Rd] R inline package

2012-03-18 Thread Troy Robertson
Hi all, I am having some problems with the inline package and maybe someone can point out what is going wrong? I have developed a C++ library to assist with an S4 R project I have been working on for some time. I need to be able to include my package using the setCMethod() function but it fails

Re: [Rd] Wierd nlm behaviour in 2.10.1 and 2.12.0 [Sec=Unclassified]

2010-10-13 Thread Troy Robertson
10 2:29 AM > To: 'Ravi Varadhan'; Troy Robertson; 'r-devel@R-project.org' > Subject: RE: [Rd] Wierd nlm behaviour in 2.10.1 and 2.12.0 > [Sec=Unclassified] > > > Try this: > > Myfunc2 <- function(rootM,Abund,Loss,OtherM) { > # I have scaled the funct

[Rd] Wierd nlm behaviour in 2.10.1 and 2.12.0 [Sec=Unclassified]

2010-10-12 Thread Troy Robertson
Hi all, When upgrading to 2.11.1 recently I noticed different results being produced by my code. After MUCH digging into my code I have finally narrowed it to a call to nlm(). The problem actually occurs in 2.10.1 and 2.12.0. This can be replicated by trying the code below in some different vers

[Rd] Wierd nlm behaviour in 2.10.1 and 2.12.0 [Sec=Unclassified]

2010-10-12 Thread Troy Robertson
Hi all, When upgrading to 2.11.1 recently I noticed different results being produced by my code. After much digging I have finally narrowed it to a call to nlm(). This can be replicated by: FixedRemovals<-1836180125888 AbStageInitial<-2223033830403 Rates<- 0.3102445 nlm(function(rootM,Abund,Lo

Re: [Rd] Recursion error after upgrade to R_2.11.1 [Sec=Unclassified] [Sec=Unclassified]

2010-10-07 Thread Troy Robertson
> -Original Message- > From: Kasper Daniel Hansen [mailto:kasperdanielhan...@gmail.com] > Sent: Friday, 8 October 2010 3:13 PM > To: Troy Robertson > Cc: Martin Maechler; r-devel@R-project.org; John Chambers > Subject: Re: [Rd] Recursion error after upgrade to R_2.11.1 > [S

Re: [Rd] Recursion error after upgrade to R_2.11.1 [Sec=Unclassified] [Sec=Unclassified]

2010-10-07 Thread Troy Robertson
> -Original Message- > From: Martin Maechler [mailto:maech...@stat.math.ethz.ch] > Sent: Thursday, 7 October 2010 9:50 PM > To: Troy Robertson > Cc: 'Martin Morgan'; 'r-devel@R-project.org'; 'John Chambers' > Subject: Re: [Rd] Recursion err

Re: [Rd] Recursion error after upgrade to R_2.11.1 [Sec=Unclassified] [Sec=Unclassified]

2010-10-06 Thread Troy Robertson
> > On 10/06/2010 06:12 PM, Troy Robertson wrote: > > Hi all, > > > > After no replies to my previous message I thought I might show some > > code to demonstrate the change and again seek any > explanation for the > > error now thrown by my cod

Re: [Rd] Recursion error after upgrade to R_2.11.1 [Sec=Unclassified]

2010-10-06 Thread Troy Robertson
Hi all, After no replies to my previous message I thought I might show some code to demonstrate the change and again seek any explanation for the error now thrown by my code after upgrading from 2.10.1 to 2.11.1. Thanks Troy setClass("Por

[Rd] Recursion error after upgrade to R_2.11.1 [Sec=Unclassified]

2010-10-04 Thread Troy Robertson
Resending this in plain text, after realising the html text hadn't been posted (oops). Hi all, After an upgrade from R_2.10.1 to R_2.11.1 I am now getting the following error: Error: evaluation nested too deeply: infinite recursion / options(expressions=)? This occurs in the initialize method o

Re: [Rd] S4 class help pages [Sec=Unclassified]

2010-10-04 Thread Troy Robertson
> -Original Message- > From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] > Sent: Monday, 4 October 2010 11:09 PM > To: Troy Robertson > Cc: 'r-devel@R-project.org' > Subject: Re: [Rd] S4 class help pages [Sec=Unclassified] > > > On 04/10/2010 1

[Rd] Recursion error after upgrade to R_2.11.1 [Sec=Unclassified]

2010-10-03 Thread Troy Robertson
Hi all, After an upgrade from R_2.10.1 to R_2.11.1 I am now getting the following error: Error: evaluation nested too deeply: infinite recursion / options(expressions=)? This occurs in the initialize method of S4 classes where I was initialising attributes eg: .Object[['realtimeState']] <- list(

[Rd] S4 class help pages [Sec=Unclassified]

2010-10-03 Thread Troy Robertson
Hi, I am working on producing an R package containing mostly S4 classes and methods. I have generated and filled out all the necessary .Rd files but find that once installed I am unable to access help pages for the classes using the ?package::classname-class syntax that is suggested when using t

Re: [Rd] OOP performance, was: V2.9.0 changes [SEC=Unclassified]

2009-07-02 Thread Troy Robertson
> Sent: Friday, 3 July 2009 10:29 AM > To: Troy Robertson; r-devel@R-project.org > Subject: Re: [Rd] OOP performance, was: V2.9.0 changes [SEC=Unclassified] > > In terms of performance if you want the fastest > performance in R go with S3 and if you want > even faster performan

Re: [Rd] OOP performance, was: V2.9.0 changes [SEC=Unclassified]

2009-07-02 Thread Troy Robertson
f the more expensive code to C. Had a quick look at simecol which looks interesting. Will point it out to my boss to check out too. Thanks Troy > -Original Message- > From: Thomas Petzoldt [mailto:thomas.petzo...@tu-dresden.de] > Sent: Friday, 3 July 2009 1:31 AM > To: Tr

Re: [Rd] V2.9.0 changes [Sec=Unclassified]

2009-07-02 Thread Troy Robertson
> -Original Message- > From: Martin Morgan [mailto:mtmor...@fhcrc.org] > Sent: Thursday, 2 July 2009 10:58 PM > To: Troy Robertson > Cc: 'r-devel@R-project.org' > Subject: Re: [Rd] V2.9.0 changes [Sec=Unclassified] > > Troy Robertson wrote: > > Well

Re: [Rd] V2.9.0 changes [Sec=Unclassified]

2009-07-01 Thread Troy Robertson
in environment when the class enherits from .environment. It would be a lot more sensible if my data members were still declared as S4 slots instead of having to hide them in .xData Troy Troy Robertson Database and Computing Support Provider Southern Ocean Ecosystems, ERM/Fish Australian

Re: [Rd] S4 and connection slot [Sec=Unclassified]

2009-06-29 Thread Troy Robertson
> To: Stavros Macrakis > Cc: Troy Robertson; r-devel@R-project.org > Subject: Re: [Rd] S4 and connection slot [Sec=Unclassified] > > Stavros Macrakis wrote: > > On Mon, Jun 29, 2009 at 9:19 AM, Martin Morgan > <mailto:mtmor...@fhcrc.org>> wrote: > > > >

Re: [Rd] S4 and connection slot [Sec=Unclassified]

2009-06-28 Thread Troy Robertson
unction(.Object,.xData=new.env(parent=emptyenv())) { .Object <- callNextMethod(.Object, .xData=.xData) return(.Object) } ) s <- new("Element") Not sure why that changes things though? Troy > -Original Message- > From: M

[Rd] S4 and connection slot [Sec=Unclassified]

2009-06-28 Thread Troy Robertson
g How can I declare a slot of the appropriate class? The strings "connection", "file" fail. Troy Troy Robertson Database and Computing Support Provider Southern Ocean Ecosystems, ERM/Fish Australian Antarctic Divi

Re: [Rd] V2.9.0 changes [Sec=Unclassified]

2009-06-24 Thread Troy Robertson
e tomorrow. Cheers Troy > -Original Message- > From: Martin Morgan [mailto:mtmor...@fhcrc.org] > Sent: Tuesday, 23 June 2009 11:25 PM > To: Troy Robertson > Cc: 'r-devel@R-project.org' > Subject: Re: [Rd] V2.9.0 changes [Sec=Unclassified] > > Troy Robertson wrote:

Re: [Rd] V2.9.0 changes [Sec=Unclassified]

2009-06-23 Thread Troy Robertson
> Sent: Tuesday, 23 June 2009 6:22 PM > To: Troy Robertson > Cc: r-devel@R-project.org > Subject: Re: [Rd] V2.9.0 changes [Sec=Unclassified] > > Not a direct answer to your question, but... > You might consider using the R.oo package, from H. Bengtsson. It's > very stable,

[Rd] V2.9.0 changes [Sec=Unclassified]

2009-06-22 Thread Troy Robertson
- 10}) z <- new('foo') z...@stuff$x <- new('foo') doit(z,z...@stuff$x) z...@stuff$x@bar [1] 0 -- Can anyone help with a better way of doing this. I'm trying to avoid all the indirection of packing and unpacking environment

[Rd] S4 Objects [Sec=Unclassified]

2009-06-01 Thread Troy Robertson
I am new to R programming but have dived into a medium sized modelling software development project. Having come from a Java OO background I have a couple of questions about S4 objects. Is there a way to make S4 slots (and methods) private and hence force the use of accessor methods? Is t