Re: [Rd] turning expression object to function

2006-12-18 Thread Tony Plate
This is what I tried, and it seemed to work, but maybe others can give better ideas, and also explain why the first attempt to assign the formal arguments didn't work (but the second did.) > f <- function() NULL > formals(f) <- list(b=1, c=2) > f function (b = 1) 2 > formals(f) <- list(b=1,

Re: [Rd] R.DLL mapping by P/Invoke

2006-12-18 Thread box
Beileive me, this option was tested extensively. There is a lot of problem there : * There is no simple way to extract data frames as they are returned as vectors (there is no place for the attributes in a COM Variant) * The console is returned by using DCOM Event. This doesn't work

Re: [Rd] abline for intercept-only simple lm models (with and without offset)

2006-12-18 Thread Prof Brian Ripley
The patch put in R-devel is broken and I have had to revert it. abline predates lm, and one can do things like (in the forecasting bundle) > plot(sales,type="p") > abline(lsfit(1:10,sales)) Error in terms.default(a) : no terms component About 10 CRAN packages were affected. What abline did is c

Re: [Rd] help search mechanism for ?"$"

2006-12-18 Thread Duncan Murdoch
On 12/18/2006 3:00 PM, Tobias Verbeke wrote: > I'm sure this is completely harmless, but > by accident I discovered that > > ?nomatterwhat$"" > > fires up > > ?"$" In general, ?fn(args) gets you help for fn, or if fn is a generic, the fn method that's appropriate for the given list of args. T

Re: [Rd] turning expression object to function

2006-12-18 Thread Gabor Grothendieck
Here is one possibility. It does not use the second argument in your function call but instead assumes the arguments of the output function are those variables in the expression that have not been assigned in the list L in the order encountered. library(gsubfn) asFun <- function(e, L = NULL, env

Re: [Rd] turning expression object to function

2006-12-18 Thread Marc Schwartz
On Mon, 2006-12-18 at 19:06 +0100, Antonio, Fabio Di Narzo wrote: > Dear all, > I have the following problem. > > Given an expression object 'expr' containing a certain set of symbols > (say 'a', 'b', 'c'), I would like to translate the expression object > in an R function of, say, 'a', programmat

[Rd] help search mechanism for ?"$"

2006-12-18 Thread Tobias Verbeke
I'm sure this is completely harmless, but by accident I discovered that ?nomatterwhat$"" fires up ?"$" Kind regards, Tobias __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] turning expression object to function

2006-12-18 Thread Antonio, Fabio Di Narzo
Dear all, I have the following problem. Given an expression object 'expr' containing a certain set of symbols (say 'a', 'b', 'c'), I would like to translate the expression object in an R function of, say, 'a', programmatically. Here an example of what I mean. Given: > expr <- expression(a+b+c) a

Re: [Rd] capturing value of C or Fortran function

2006-12-18 Thread Thomas Lumley
On Wed, 13 Dec 2006, Harris A. Jaffee wrote: > Re: src/main/dotcode.c:do_dotCode() > > The value, if there is one, of a function called by .C or .Fortran is not > captured, so one needs a wrapper. To avoid that, the user would have to > declare that there is a value, specify its type, and supply

Re: [Rd] Error compiling on HP-UX

2006-12-18 Thread Hin-Tak Leung
Peter Dalgaard wrote: > Pascal A. Niklaus wrote: >> Dear all, >> >> I hope this is the right mailing list for my question -- I felt that this >> was >> too technical for R-help. >> >> I am trying to compile R-2.4.0 on a HP-UX system: >> >> ./configure >> MAKE=gmake --prefix=$HOME --without-x --

Re: [Rd] Error compiling on HP-UX

2006-12-18 Thread Peter Dalgaard
Pascal A. Niklaus wrote: > Dear all, > > I hope this is the right mailing list for my question -- I felt that this was > too technical for R-help. > > I am trying to compile R-2.4.0 on a HP-UX system: > > ./configure > MAKE=gmake --prefix=$HOME --without-x --without-tcltk --disable-R-profiling

[Rd] .Rprofile not executed completely in 2.5.0

2006-12-18 Thread Petr Pikal
Dear all I do not usually post to R-devel, but I started to test R-2.5.0dev and encountered strange difference from 2.4.0 when loading Rgui under WXP. Both R builds are from CRAN executables and part of .Rprofile file is not executed in R-2.5.0. Here is my .Rprofile file contents -

Re: [Rd] Error compiling on HP-UX

2006-12-18 Thread Pascal A. Niklaus
Thanks for your answer. > The gcc version might be helpful bash-2.05b$ gcc --version gcc (GCC) 4.1.1 Pascal __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Error compiling on HP-UX

2006-12-18 Thread Pascal A. Niklaus
Dear all, I hope this is the right mailing list for my question -- I felt that this was too technical for R-help. I am trying to compile R-2.4.0 on a HP-UX system: ./configure MAKE=gmake --prefix=$HOME --without-x --without-tcltk --disable-R-profiling --without-readline --disable-multibyte

Re: [Rd] Curious finding in MASS:::confint.glm() tied to eval()

2006-12-18 Thread Marc Schwartz
On Mon, 2006-12-18 at 12:53 +, Prof Brian Ripley wrote: > On Sat, 16 Dec 2006, Marc Schwartz wrote: > > > Hi all, > > > > Has anyone had a chance to look at this and either validate my finding > > or tell me that my brain has turned to mush? > > > > Either would be welcome... :-) > > Looks l

Re: [Rd] Phonetic symbols (IPA) in R graphics

2006-12-18 Thread Hin-Tak Leung
Hi, I am not familiar with how R deals with postscript fonts, but I am fairly familiar with some font technology, so here are a few random thoughts: (1) You are not supposed to specify just any random font family string - postscript type 1 fonts contain their own family name inside. (read the top o

Re: [Rd] Curious finding in MASS:::confint.glm() tied to eval()

2006-12-18 Thread Prof Brian Ripley
On Sat, 16 Dec 2006, Marc Schwartz wrote: > Hi all, > > Has anyone had a chance to look at this and either validate my finding > or tell me that my brain has turned to mush? > > Either would be welcome... :-) Looks like MASS:::profile.glm could be simplified to profile.glm <- function(fitted, w

Re: [Rd] abline for intercept-only simple lm models (with and without offset)

2006-12-18 Thread Martin Maechler
> "TobiasV" == Tobias Verbeke <[EMAIL PROTECTED]> > on Sun, 17 Dec 2006 22:34:50 +0100 writes: TobiasV> Martin Maechler wrote: >> Yes, I think all your propositions would be improvements. >> OTOH, I don't think the improvements warrant a big >> increase in code (complex

[Rd] Mailing lists R-devel and R-core .. moderation

2006-12-18 Thread Martin Maechler
Because of spam, increasingly slipping through all our filters, I've changed the configurations of the R-devel and R-core mailing lists {and will do the same for those R-SIG-* lists that I maintain}, such that only subcribers can freely post. Everyone else's post will have to wait on moderator's a