From: Dawn W. <dwo...@in...> - 2007-10-05 18:54:55
|
=20 The modelDisable function in BRugs allows the user to turn off = particular updaters during model fitting. It is hard to tell whether it does what = it is intended to do, however, since there is no function that lists all of = the currently enabled updaters. How hard would it be to write such a = function? Alternatively, we could provide a function that is the equivalent of infoUpdatersbyName or infoNodeMethods in the scripting language. Here = is my (incomplete) attempt at such a function, which is intended to write the updaters to the buffer file and then display that file. It is patterned after the modelModules function in BRugs. =20 infoUpdatersbyName <- function(){ command <- "BugsEmbed.UpdatersByName" .C("CmdInterpreter", command, nchar(command), integer(1), = PACKAGE=3D"BRugs") buffer <- file.path(tempdir(), "buffer.txt") file.show(buffer) } =20 The information never gets written to the buffer, however. Any ideas? =20 Thank you! Dawn |