Re: [R] tools:::fetchRdDB can't allocate memory block?

2010-10-08 Thread Ken Williams
On Oct 8, 11:32 am, Prof Brian Ripley wrote: > (1) Package development is an R-devel topic -- please see the posting > guide. I'll repost there, thanks. -Ken __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE d

[R] tools:::fetchRdDB can't allocate memory block?

2010-10-08 Thread Ken Williams
I'm developing an R package, and when I recompile (using Roxygen), detach, and re-load the package, I can't seem to look at some of its documented functions. When I try '?function.name', I get the following error: Error in tools:::fetchRdDB(RdDB, basename(file)) : cannot allocate memory blo

[R] Globbing inconsistencies, dir() vs. unlink()

2010-10-04 Thread Ken Williams
ot;u0048513/p4/r-packages/IREval/Read-and-delete-me" [4] "u0048513/p4/r-packages/IREval/tests/general.R" > (unlink(Sys.glob("~/p4/r-packages/IREval/Users"), recursive=TRUE)) [1] 0 > dir("~/p4/r-packages/IREval/Users", recu

[R] Roxygen not truncating files

2010-10-04 Thread Ken Williams
sage{adddots.pr(pr)} \name{adddots.pr} \alias{adddots.pr} \title{adddots.pr} \usage{adddots.pr(pr)} \name{adddots.pr} \alias{adddots.pr} \title{adddots.pr} \usage{adddots.pr(pr)} ... I also get the same behavior for the DESCRIPTION file. Is this a known gotcha that someone's found a work

Re: [R] A %nin% operator?

2010-08-05 Thread Ken Williams
o%" <- function(x,y) x[!x %in% y] #-- x without y > since: > "%in%" <- function(x, table) match(x, table, nomatch = 0) > 0 > It appears that you have just re-invented the without-wheel. -- Ken Williams Sr. Research Scientist Thomson Reuters Phone: 651-848-771

Re: [R] A %nin% operator?

2010-08-05 Thread Ken Williams
Ha! Thanks. I should have a closer look at Hmisc in general. -Ken On 8/5/10 10:25 AM, "David Huffer" wrote: > See Harrell's Hmisc package > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of

[R] A %nin% operator?

2010-08-05 Thread Ken Williams
ction (x, table) match(x, table, nomatch = 0L) == 0L and then I'm happy again. I wonder, would something like this find a home in core R? Or is that too much syntactic sugar for your taste? -- Ken Williams Sr. Research Scientist Thomson Reuters Phone:

Re: [R] R on the iPhone/iPad? Not so much....a GPL violation

2010-06-01 Thread Ken Williams
Hi Marc, I want to debate a couple points from your post: > 1. Distribution of GPL covered applications is not permissible via the App > Store due to the Apple Terms of Service language, which infringes upon rights > granted under the GPL. > > 'Nuff said. I'm not sure I agree with this, but the

[R] Simulating random draws

2008-10-01 Thread Ken Williams
late.unknowns <- function(pr, probs, expr, trials=1000, labels=colnames(probs)) { isNA <- is.na(pr$label) replicate(trials, { pr$label[isNA] <- runif(sum(isNA)) < probs[isNA] expr(pr) }) } Thanks. -- Ken Williams Research Scientist The

Re: [R] History pruning

2008-08-08 Thread Ken Williams
ly automatically, but some kind of support from tools would be great. Thanks for mentioning plot2script() and the TeachingDemos package, those are indeed nice examples to look at. -- Ken Williams Research Scientist The Thomson Reuters Corporation Eagan, MN ___

Re: [R] History pruning

2008-08-04 Thread Ken Williams
clearance to show my work soon. It would be nice if this could be hooked into ESS for selective pruning or something. -Ken -- Ken Williams Research Scientist The Thomson Reuters Corporation Eagan, MN __ R-help@r-project.org mailing list https://stat.ethz

Re: [R] History pruning

2008-08-01 Thread Ken Williams
around without using tools, I tend to do better when I have tools. > You also have to trust that there are no side effects, which I wouldn't > want to do, because plot() changes the value of par() parameters. It does? I wasn't aware of that, could

Re: [R] History pruning

2008-07-31 Thread Ken Williams
On 7/31/08 2:12 PM, "Duncan Murdoch" <[EMAIL PROTECTED]> wrote: > > expression() returns a list of language objects, and we only asked for > one. We can look inside it: Hey, cool. Now let me see if I can do anything useful with that. Thanks. -Ken -- Ken Willia

Re: [R] History pruning

2008-07-31 Thread Ken Williams
ated. But coincidentally I work in a Natural Language Processing group, and one of the things we do is create exactly the kind of concise summaries you describe. =) -- Ken Williams Research Scientist The Thomson Reuters Corporation Eagan, MN __

Re: [R] History pruning

2008-07-31 Thread Ken Williams
nable to such things, with its pass-by-value functional semantics, etc. -- Ken Williams Research Scientist The Thomson Reuters Corporation Eagan, MN __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] History pruning

2008-07-30 Thread Ken Williams
ot" or the like. Thanks. -- Ken Williams Research Scientist The Thomson Reuters Corporation Eagan, MN __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/pos

[R] Extending data.frame

2007-12-17 Thread Ken Williams
nyone offer any advice? I'm open to using a different OO system if that's deemed advisable, I'm not very familiar with any of them. Note that in my real (non-toy) application, I'll need arbitrary methods to be able to read & write data to the object, so simple getField(