[R-pkg-devel] R CMD check fails on namespace load for an installed package

2020-04-10 Thread Paul Bailey
When I try to R CMD check --as-cran the EdSurvey package for submission on R-devel I get this error: > > * installing *source* package 'EdSurvey' ... > ** using staged installation > ** R > ** inst > ** byte-compile and prepare package for lazy loading > Error: package or namespace load failed

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

2011-11-27 Thread Paul Bailey
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.ch/mailman/listinfo

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

2011-11-27 Thread Paul Bailey
, 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 description when I wanted details. Thanks! Best, Paul Bailey __ R

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

2011-01-27 Thread Paul Bailey
=list)) [1] b fb - function() { + new(b,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 Ph.D. candidate Department

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

2011-01-26 Thread Paul Bailey
- 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(ag$fo,ag$data,sum) } agg3() # end R code == Paul Bailey University of Maryland

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

[Rd] Accessing options of L-BFGS-B

2010-07-07 Thread Paul Bailey
, the 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

[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) {