search for: some_flashy_c_thing

Displaying 1 result from an estimated 1 matches for "some_flashy_c_thing".

1998 Jun 03
1
R-beta: Re: "as.numeric" `mode' and `cast' should be kept separate.
...le > > "%cast.as%" <- function(x, form) { > storage.mode(x) <- deparse(substitute(form)) > x > } > > Calls to .C would then take on such a striking form that it would > be immediately noticed if something had been missed: > > result <- .C("some_flashy_C_thing", > x = my.x %cast.as% double, > i = my.eye %cast.as% integer, > oops = forgot.this.one, > value = z %cast.as% single)$value I really like that idea! But I have to nit-pick the suggested implementation. Instead of the deparse(substitute()) stuff, just...