search for: nameobject

Displaying 4 results from an estimated 4 matches for "nameobject".

2012 Feb 04
1
'deparse(substitute'))' then 'assign' in a S4 methods
Hi the list, I am writing a function in which I need to affect a variable on a higher level. My fnction could be: ++++++++++++++++++ fooBis <- function(x){ nameObject <- deparse(substitute(x)) print(nameObject) assign(nameObject,4,envir=parent.frame()) } > fooBis(e) [1] "e" > e [1] 4 ----------------- (to simplify, this fnction can affect only the number 4. But it does it in the parent frame). My problem is that I use S4 programm...
2009 Sep 09
1
Package that does not work until I re write the exactly the same code
...else { screenPlot <- NA if (is.na(distInt)) { cat(" ~ Slow KmL ~\n") fast <- FALSE distanceSlow <- distance } else { cat(" ~ Fast KmL ~\n") fast <- TRUE } } nameObject <- deparse(substitute(Object)) for (iRedraw in 1:nbRedrawing) { for (iNbClusters in nbClusters) { saveCld <- saveCld + 1 clustersInit <- partitionInitialise(nbClusters = iNbClusters, method = startingCond[iRedraw], lengthPart = nbId,...
2007 Sep 07
1
core improvements
I've been making a large set of important updates to the code base recently and there's more stuff on it's way but I'd like to get some feedback first. I know that some of the changes I've made and will be making require a fair amount of work by plugin and config tool developers but I hope you can bear with me. They are very important for the future of the project. - API,
2008 Feb 07
1
[ANNOUNCE] compiz-0.7.0
...ObjectCallbackProc to ObjectCallBackProc and add return Add compObjectForEach function. Use compObjectForEach for plugin initialization of Re-write object initialization code to properly handle Add name to object info struct. Add compObjectTypeName function. Add nameObject function to object interface. Move file watch interface to core object. Remove setDisplayOptionForPlugin and setScreenOptionForPlugin Add findObject function to object interface. Add parent to object struct. Use 'base' as default name for base object instead of...