Re: [Rd] Error in Rd[[which]] : subscript out of bounds

2011-11-27 Thread Paul Bailey
tion/so that you can use > traceback() etc. > Sorry, should have said this is in 2.14.0. Using traceback() as you suggested solved this problem for me, thanks. this made it pretty obvious: 2: checkUnique("\\description") looks like I typed desc

[Rd] Error in Rd[[which]] : subscript out of bounds

2011-11-27 Thread Paul Bailey
can point me to what a minimal .Rd file has in it. The file is already pretty minimal, so it's possible I've already gone to small and that is the reason for the error. Best, Paul Bailey __ R-devel@r-project.org mailing list https://stat.ethz

[Rd] help with S4 objects: trying to use a "link-glm" as a class in an object definition

2011-01-27 Thread Paul Bailey
",item=make.link("probit")) + } > fb() Error in validObject(.Object) : invalid class "b" object: invalid object for slot "item" in class "b": got class "link-glm", should be or extend class "list" Any advice? Regards, Paul Bailey

[Rd] aggregate(as.formula("some formula"), data, function) error when called from in a function

2011-01-26 Thread Paul Bailey
if(test) { return(list(fo=fo,data=dat)) } cat("do agg 2\n") agg2 <- aggregate(fo,data=dat,sum) list(agg1,agg2) } agg2(FALSE) ag <- agg2(TRUE) ag$fo aggregate(ag$fo,ag$data,sum) agg3 <- function() { ag <- agg2(TRUE) ag$fo aggregate

[Rd] pass-by-reference

2010-07-07 Thread Paul Bailey
I'm working with a large object that I want to modify slightly in a function. Pass-by-reference would make a lot of sense, but I don't know how to do it. I've searched this archive and thought that I can do something like f <- function(x) { v1 <- list(a=x,b=3) g(x) v1 } g <- function(x) {

[Rd] Accessing options of L-BFGS-B

2010-07-07 Thread Paul Bailey
BFGS type papers tend to be long on the BFGS explanations and short on the line search explanations. If someone pointed me to a good line search paper that uses the Wolfe conditions... Thanks, Paul Bailey -- View this message in context: http://r.789695.n4.nabble.com/Accessing-options-of-L-BFGS-B

Re: [Rd] constrained optimization

2010-07-07 Thread Paul Bailey
Have you considered using the optim function with L-BFGS-B for bounded optimization. Obviously, you will have to do changes of variables so that everything is in terms of a rectangle (which is the type of bounding that it accepts). I believe it is based on "A LIMITED MEMORY ALGORITHM FOR BOUND CO