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,
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
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
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
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
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
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
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
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
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 --
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
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
-
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
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
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
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
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
> "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
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
19 matches
Mail list logo