similar to: active bindings and ls.str

Displaying 20 results from an estimated 4000 matches similar to: "active bindings and ls.str"

2013 Nov 16
2
serialization for external pointers
Hello, Are there any recipe to handle serialization / deserialization of external pointers. I'm thinking about something similar in spirit to the way we handle finalization of external pointers. Currently, if we create an external pointer, save the session, quit R, then load the session, we get a null pointer. One way I'm thinking of is to have an environment in the
2009 Aug 21
2
more special completions
Hi, Would it be possible to add the capability for functions to register how they would like to complete themselves. Currently, there is the .addFunctionInfo, but it allows only functions to register a static list of potential completions, I was thinking of a way to register not a fixed list of possible completions, but a __function__ that would calculate completions dynamically. This could
2009 Dec 15
1
S4 dispatch and S3 "connection" objects
Hello, I'm trying to get S4 dispatch on S3 "connection" objects. So I do : setOldClass( "connection" ) and then : setGeneric( "bling", function(object) standardGeneric( "bling" ) ) setMethod( "bling", "connection", function(object) cat( "gotcha ", as.integer(object), "\n" ) ) but I get : f <- file(
2009 Dec 15
2
split.data.frame
Hello, I very much enjoy "with" and "subset" semantics for data frames and was wondering if we could have something similar with split, basically by evaluating the second argument "with" the data frame : split.data.frame function(x, f, drop = FALSE, ...){ call <- match.call( ) fcall <- call( "with", data = call[["x"]],
2009 Oct 10
1
isFALSE
Hello, Just wondering why there is "isTRUE" and not "isFALSE". Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/BcPw : celebrating R commit #50000 |- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc `- http://tr.im/yw8E : New R package : sos -------------- next part -------------- An
2011 May 31
1
assignInNamespace and new bindings
Hello, assignInNamespace refuses to assign an object to a name that is not already used in the namespace. Something like this would make it possible: --- src/library/utils/R/objects.R (revision 56024) +++ src/library/utils/R/objects.R (working copy) @@ -252,8 +252,9 @@ stop("environment specified is not a package") ns <- asNamespace(substring(nm, 9L))
2009 Nov 05
1
combine UserDefinedDatabase and regular environments
Hello, Is it possible to have the effect of UserDefinedDatabase outside of "attached" environments ? Can I disguise an environment of the sys.frames() as a UserDefinedDatabase ? This seems to suggest that it might be possible : > f <- function(){ e <- environment(); class(e) <- "UserDefinedDatabase"; ff } > f() *** caught segfault *** address (nil),
2009 Mar 20
2
Why does the lexical analyzer drop comments ?
It happens in the token function in gram.c:     c = SkipSpace();     if (c == '#') c = SkipComment(); and then SkipComment goes like that: static int SkipComment(void) {     int c;     while ((c = xxgetc()) != '\n' && c != R_EOF) ;     if (c == R_EOF) EndOfFile = 2;     return c; } which effectively drops comments. Would it be possible to keep the information
2009 Jun 02
1
RKWard: R backend requests information
Hello List I've decided to dive into R and found a useful GUI for GNU/Linux (Debian testing/ Squeeze) called RKWard. However, when I fire it up a dialog box appears with the statement "R backend requests information". I have tried entering the path to the R libraries (e.g. /usr/bin/R; /etc/R; and so on) but none of these work, and the darn thing won't go away without
2009 Aug 27
1
[Fwd: Re: Video demo of using svSocket with data.table]
Forwarded to R-Help, because I think it could interest people following this thread. Clearly, RServe and svSocket have different goals and very little overlap. Best, Philippe -------- Original Message -------- Subject: Re: Video demo of using svSocket with data.table Date: Wed, 26 Aug 2009 20:34:19 +0100 From: Matthew Dowle <mdowle at mdowle.plus.com> Reply-To: Matthew Dowle
2009 Feb 12
1
Why is srcref of length 6 and not 4 ?
Hello, Consider this file (/tmp/test.R) : <file> f <- function( x, y = 2 ){ z <- x + y print( z ) } </file> I get this in R 2.7.2 : > p <- parse( "/tmp/test.R" ) > str( attr( p, "srcref" ) ) List of 1 $ :Class 'srcref' atomic [1:4] 1 1 4 1 .. ..- attr(*, "srcfile")=Class 'srcfile' length 4 <environment>
2011 Jan 11
0
[Rcpp-devel] Loading a package using Rcpp Modules results in memory corruption
On Tue, Jan 11, 2011 at 2:41 PM, Romain Francois <romain@r-enthusiasts.com>wrote: > Le 11/01/11 19:57, Romain Francois a écrit : > > Le 11/01/11 19:46, Douglas Bates a écrit : >> >>> On Tue, Jan 11, 2011 at 12:27 PM, Dominick >>> Samperi<djsamperi@gmail.com> wrote: >>> >>>> >>>> >>>> On Tue, Jan 11, 2011 at
2009 Jun 18
1
R_parseVector and syntax error [was: error messages while parsing with rniParse]
Hello, [I'm redirecting this here from stats-rosuda-devel] When parsing R code through R_parseVector and the code generates an error (syntax error), is there a way to grab the error. It looks like yyerror populates the buffer "R_ParseErrorMsg", but then the variable is not part of the public api. Would it be possible to add yet another entry point to the parser that would
2010 Jan 06
1
MakeActiveBinding help needed
Hi, I wanted a Q&D way to open a new graphics window but keep the focus in the console window (under Windows and the Rgui), so I wrote a line into my Rprofile.site file as follows: invisible(makeActiveBinding('newdev', function(...) dev.new(restoreConsole=T), .GlobalEnv)) (That is all on one line, incase the mailer re-parses it). This gives me a command "newdev" which
2011 Jan 03
7
Saving objects inside a list
Hello there, any ideas on how to save all the objects on my workspace inside a list object? For example, say my workspace is as follows ls() [1] "x" "y" "z" and suppose I want to put these objects inside a list object, say object.list <- list() without having to explicitly write down their names as in object.list$x = x object.list$y = y object.list$z = z Is
2009 Jun 23
0
RImageJ initial release
Hello, I've uploaded the initial release (0.0-142) of the RImageJ package to CRAN. The package allows R to use the facilities of the java based image processing and analysis platform ImageJ. See also the announcement on my blog, with a very simple example showing how to use the package: http://romainfrancois.blog.free.fr/index.php?post/2009/06/22/using-ImageJ-from-R%3A-the-RImageJ-package
2009 Jun 23
0
RImageJ initial release
Hello, I've uploaded the initial release (0.0-142) of the RImageJ package to CRAN. The package allows R to use the facilities of the java based image processing and analysis platform ImageJ. See also the announcement on my blog, with a very simple example showing how to use the package: http://romainfrancois.blog.free.fr/index.php?post/2009/06/22/using-ImageJ-from-R%3A-the-RImageJ-package
2009 Apr 20
0
xterm256
This is the first release of the xterm256 package. xterm256 is a small package that takes advantage of the 256 color mode of xterm, enabling use of foreground and background colors in the R console. The package exposes one function "style" that takes three arguments: - (x) the text to style - (bg) the background color to use - (fg) the foreground color to use The color might be
2009 Apr 20
0
xterm256
This is the first release of the xterm256 package. xterm256 is a small package that takes advantage of the 256 color mode of xterm, enabling use of foreground and background colors in the R console. The package exposes one function "style" that takes three arguments: - (x) the text to style - (bg) the background color to use - (fg) the foreground color to use The color might be
2010 Jun 18
2
nchar( NA )
Hello, Is this expected ? > nchar( c( "", NA ) ) [1] 0 2 Should not the second one be NA ? Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://bit.ly/98Uf7u : Rcpp 0.8.1 |- http://bit.ly/c6YnCi : graph gallery collage `- http://bit.ly/bZ7ltC : inline 0.3.5