Re: [Rd] how to use debug.mypkg

2007-03-23 Thread cstrato
Thank you all for your suggestions, I have implemented the OPTIONS "option", since it allows to define other options, too. Yes, I use now the Collate field, since it gives me the possibility to organize my files in the way I want. Best regards Christian Benilton Carvalho wrote: > it doesn't mat

Re: [Rd] how to use debug.mypkg

2007-03-23 Thread Paul Gilbert
Here is the way I do something similar in my dse1 package: ..onLoad <- function(library, section) { .DSEflags(list(COMPILED=TRUE, DUP=TRUE)) invisible(TRUE) } ..DSEflags <- local({ .DSE.flags <- character(0) function(new) { if(!missing(new)) .DSE.flags <<-

Re: [Rd] how to use debug.mypkg

2007-03-22 Thread Benilton Carvalho
Great tip Seth... thanks a bunch... b On Mar 22, 2007, at 9:54 PM, Seth Falcon wrote: > Benilton Carvalho <[EMAIL PROTECTED]> writes: > >> it doesn't matter where.. >> >> just pick one of your files and set it... >> >> of course, your file should be listed in the Collate field (in case >> you c

Re: [Rd] how to use debug.mypkg

2007-03-22 Thread Seth Falcon
Benilton Carvalho <[EMAIL PROTECTED]> writes: > it doesn't matter where.. > > just pick one of your files and set it... > > of course, your file should be listed in the Collate field (in case > you changed your mind and are now using it). One useful trick is to create an environment object in y

Re: [Rd] how to use debug.mypkg

2007-03-22 Thread Benilton Carvalho
it doesn't matter where.. just pick one of your files and set it... of course, your file should be listed in the Collate field (in case you changed your mind and are now using it). b On Mar 22, 2007, at 6:52 PM, cstrato wrote: > Yes, I know, but somewhere in my package I need to define this

Re: [Rd] how to use debug.mypkg

2007-03-22 Thread cstrato
Yes, I know, but somewhere in my package I need to define this flag. When I set the flag "debug.mypkg<-T" in the R session, everything works, but the problem is that if I do not set it, it is undefined. So I need to set it initially in my package, but where? Christian Benilton Carvalho wrote: >

Re: [Rd] how to use debug.mypkg

2007-03-22 Thread Benilton Carvalho
debug.affy123 is not a function... it's just a logical flag set in ProgressBarText.R. b On Mar 22, 2007, at 6:22 PM, cstrato wrote: > Dear all, > > The package "affy" has the following statement in file "AffyBatch.R": > if (debug.affy123) cat("-->initAffyBatch\n") > > This is great and I would

[Rd] how to use debug.mypkg

2007-03-22 Thread cstrato
Dear all, The package "affy" has the following statement in file "AffyBatch.R": if (debug.affy123) cat("-->initAffyBatch\n") This is great and I would also like to use it. However, when I run my package I get the following error: Error in .local(object, ...) : object "debug.mypkg" not found Sin