[R] Problem with loading a package containing operator

2016-07-08 Thread cgw
I have a published package cgwtools which includes an overload of the ! operator. Here's the code from the source file splatnd.r : `!` <- function (e1, e2) { call <- match.call() original <- function() { call[[1]] <- quote(base::`!`) return(eval(call, parent.frame(2))) } switch(paste(as.charac

Re: [R] how to calculate this natural logarithm

2011-01-09 Thread cgw
You could re-do part of your code to run with mpfr-class variables, and use this function: # mpfr choose(n,k) rmpfac<-function(n,k,prec=50) factorial(mpfr(n,prec))/factorial(mpfr(k,prec))/factorial(mpfr(n-k,prec)) Converting into and out of mpfr may not be worth it, but you wi

[R] logos and goodies

2010-07-29 Thread cgw
I've got a couple questions related to my search (in vain) for an "R" tshirt or coffee mug. The first question is simply: is there a higher-resolution R logo available than the one at r-developer.org? (or the modified one provided by useR conference pages) Next: what are the chan

Re: [R] ISO Eric Kort (rtiff)

2010-05-04 Thread cgw
Thanks, Brian. I can see where to mod readTiff to return the original data ranges; and where to mod writeTiff so it writes files with something better than the current 0:255 resolution range. I have found an additional problem with readTiff, so is there someone I can write to about it? What

Re: [R] Is it possible to recursively update a function?

2010-03-07 Thread cgw
Well, it takes a bit of hacking with concatenation functions followed by get, eval, and parse, but I've written functions/scripts which build functions like the f1,f2,... below out of various strings. Heck, I even (don't ask :-) ) wrote a tool to invert an array along a specified dimension.

[R] Fixed: Re: Re: [stats-rosuda-devel] how to install JGR manually?

2009-10-20 Thread cgw
To follow up: I believe I had a version mismatch between one of the packages and R. I made sure to install the latest of all, at which point jgr.exe launched just fine. Thanks to Simon and Liviu for their comments. Just one note: the Windows launcher does not provide any info if it can't reach

Re: [R] how to install JGR manually?

2009-10-16 Thread cgw
It doesn't get that far. I launch jgr.exe and it announces that it can't connect to the internet, and shuts itself down. I've installed every dependent package listed in the jgr documentation. Carl Oct 16, 2009 09:14:38 AM, landronim...@gmail.com wrote: ==

[R] lm: how are polynomial functions interpreted?

2009-01-12 Thread cgw
__ 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/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Better way to find distances between points in a set?

2008-12-10 Thread cgw
Hah! I DID do my homework first. From now on I guess I'll have to post the complete list of trails I followed before deciding I was lost. That appears to be the only way to stave off the Harpies. So, before I posted, and before I even wrote my toy script, I found and read thru