[Rd] Reference Classes, Generator Object

2011-06-10 Thread soeren . vogel
Hello, I am working with a reference class: Foo <- setRefClass("Bar", fields = list( a = "numeric"), methods = list( baz = function( xa ) a <<- xa ) ) x <- Foo$new() x$baz(2) x$a y <- new("Bar") y$baz(4) y$a But that might be confusing, since new(Foo) does not work and neither does Bar$new()

[Rd] Require of gWidgetsRGtk2 fails: RGtk2.dll can't be found, but it's there

2011-06-10 Thread Janko Thyson
Dear list, I've been trying to get gWidgets/gWidgetsRGtk2 to run every other month for a while, but somehow I simply can't figure out what's going wrong. I tried several distributions of the GTK runtime environment for Windows (http://downloads.sourceforge.net/gladewin32/gtk-2.12.9-win32-1.ex

Re: [Rd] Require of gWidgetsRGtk2 fails: RGtk2.dll can't be found, but it's there

2011-06-10 Thread Gabor Grothendieck
On Fri, Jun 10, 2011 at 6:04 AM, Janko Thyson wrote: > Dear list, > > I've been trying to get gWidgets/gWidgetsRGtk2 to run every other month for > a while, but somehow I simply can't figure out what's going wrong. > 1. Use the automatically installed GTk2, not some other version. 2. Note that t

Re: [Rd] Require of gWidgetsRGtk2 fails: RGtk2.dll can't be found, but it's there

2011-06-10 Thread Prof Brian Ripley
On Fri, 10 Jun 2011, Janko Thyson wrote: Dear list, I've been trying to get gWidgets/gWidgetsRGtk2 to run every other month for a while, but somehow I simply can't figure out what's going wrong. Your subject line indicates your confusion. It does not say RGtk2.dll cannot be found (at least

Re: [Rd] Data package questions

2011-06-10 Thread Claudia Beleites
Dear Paul, In process of creating data package from an existing one. The current package has both raw data files and the associated RData objects created from them. Currently, the data subdirectory is 1.5Mb and the extdata is 5.4Mb. Never having created a data package before, how is this best d

Re: [Rd] Require of gWidgetsRGtk2 fails: RGtk2.dll can't be found, but it's there

2011-06-10 Thread Janko Thyson
On 10.06.2011 13:18, Prof Brian Ripley wrote: > On Fri, 10 Jun 2011, Janko Thyson wrote: > >> Dear list, >> >> I've been trying to get gWidgets/gWidgetsRGtk2 to run every other >> month for a while, but somehow I simply can't figure out what's going >> wrong. > > Your subject line indicates your

Re: [Rd] Require of gWidgetsRGtk2 fails: RGtk2.dll can't be found, but it's there

2011-06-10 Thread Janko Thyson
On 10.06.2011 13:00, Gabor Grothendieck wrote: > On Fri, Jun 10, 2011 at 6:04 AM, Janko Thyson > wrote: >> Dear list, >> >> I've been trying to get gWidgets/gWidgetsRGtk2 to run every other month for >> a while, but somehow I simply can't figure out what's going wrong. >> > 1. Use the automatical

Re: [Rd] Require of gWidgetsRGtk2 fails: RGtk2.dll can't be found, but it's there

2011-06-10 Thread Prof Brian Ripley
It is a Microsoft error message, so your Windows is translating it, not R. It does say 'The specified module' in English Windows, without saying who specified the module (but it does often produce a popup naming the module). I've no better idea what your problem is: the @ReadMe instructions

Re: [Rd] Require of gWidgetsRGtk2 fails: RGtk2.dll can't be found, but it's there

2011-06-10 Thread Gabor Grothendieck
On Fri, Jun 10, 2011 at 8:31 AM, Janko Thyson wrote: > On 10.06.2011 13:00, Gabor Grothendieck wrote: > > On Fri, Jun 10, 2011 at 6:04 AM, Janko Thyson > wrote: > > Dear list, > > I've been trying to get gWidgets/gWidgetsRGtk2 to run every other month for > a while, but somehow I simply can't fig

Re: [Rd] Require of gWidgetsRGtk2 fails: RGtk2.dll can't be found, but it's there

2011-06-10 Thread Janko Thyson
On 10.06.2011 14:40, Gabor Grothendieck wrote: On Fri, Jun 10, 2011 at 8:31 AM, Janko Thyson wrote: On 10.06.2011 13:00, Gabor Grothendieck wrote: On Fri, Jun 10, 2011 at 6:04 AM, Janko Thyson wrote: Dear list, I've been trying to get gWidgets/gWidgetsRGtk2 to run every other month for a

Re: [Rd] Require of gWidgetsRGtk2 fails: RGtk2.dll can't be found, but it's there

2011-06-10 Thread Janko Thyson
Okay, at least some positive result today (language issue ;-)) Thanks for trying. Seems like GTK2 and me are not meant to be ... Regards, Janko On 10.06.2011 14:36, Prof Brian Ripley wrote: It is a Microsoft error message, so your Windows is translating it, not R. It does say 'The specified m

[Rd] How to add a welcome message in Package development?

2011-06-10 Thread Nipesh Bajaj
Dear all, it is my first post in R-devel list, and hope that this is the right place to ask question related to package development. I have created my first package in Windows through the usual route. Now I want to add some ***Welcome message*** as soon as user loads my package into their R consol

Re: [Rd] How to add a welcome message in Package development?

2011-06-10 Thread Simon Urbanek
On Jun 10, 2011, at 2:54 PM, Nipesh Bajaj wrote: > Dear all, it is my first post in R-devel list, and hope that this is > the right place to ask question related to package development. > > I have created my first package in Windows through the usual route. > Now I want to add some ***Welcome me

Re: [Rd] How to add a welcome message in Package development?

2011-06-10 Thread Dirk Eddelbuettel
On 10 June 2011 at 15:10, Simon Urbanek wrote: | | On Jun 10, 2011, at 2:54 PM, Nipesh Bajaj wrote: | | > Dear all, it is my first post in R-devel list, and hope that this is | > the right place to ask question related to package development. | > | > I have created my first package in Windows t

Re: [Rd] How to add a welcome message in Package development?

2011-06-10 Thread William Dunlap
I agree with Simon that package startup messages are often annoying and not often helpful. However, I think they should be generated with packageStartupMessage("your message") instead of cat("your message\n") The former may be suppressed by wrapping the call to library() with suppressPackage

Re: [Rd] How to add a welcome message in Package development?

2011-06-10 Thread Simon Urbanek
On Jun 10, 2011, at 3:36 PM, Dirk Eddelbuettel wrote: > > On 10 June 2011 at 15:10, Simon Urbanek wrote: > | > | On Jun 10, 2011, at 2:54 PM, Nipesh Bajaj wrote: > | > | > Dear all, it is my first post in R-devel list, and hope that this is > | > the right place to ask question related to pack

Re: [Rd] How to add a welcome message in Package development?

2011-06-10 Thread Dirk Eddelbuettel
On 10 June 2011 at 16:04, Simon Urbanek wrote: | On Jun 10, 2011, at 3:36 PM, Dirk Eddelbuettel wrote: | > | That said, you can simply use cat() in .First.lib (if your packages has no namespace) or .onAttach or .onLoad (if your packages has a namespace). | > | > No, not cat() --- please use pa

[Rd] CRAN package with dependencies on Bioconductor

2011-06-10 Thread Kornelius Rohmeyer
Dear all, for a CRAN-package that depends on another Bioconductor-package I find two things annoying and would like to know whether there are some workarounds: 1) Is there some inevitable problem that install.packages does not install uninstalled packages (on which the specified package depends)

Re: [Rd] CRAN package with dependencies on Bioconductor

2011-06-10 Thread Kornelius Rohmeyer
I'm sorry for sending a wrongly formated mail before. This is the missing text: Dear all, for a CRAN-package that depends on another Bioconductor-package I find two things annoying and would like to know whether there are some workarounds: 1) Is there some inevitable problem that install.package

Re: [Rd] CRAN package with dependencies on Bioconductor

2011-06-10 Thread Martin Morgan
On 06/10/2011 04:04 PM, Kornelius Rohmeyer wrote: I'm sorry for sending a wrongly formated mail before. This is the missing text: Dear all, for a CRAN-package that depends on another Bioconductor-package I find two things annoying and would like to know whether there are some workarounds: 1) I

Re: [Rd] CRAN package with dependencies on Bioconductor

2011-06-10 Thread Duncan Murdoch
On 11-06-10 7:04 PM, Kornelius Rohmeyer wrote: I'm sorry for sending a wrongly formated mail before. This is the missing text: Dear all, for a CRAN-package that depends on another Bioconductor-package I find two things annoying and would like to know whether there are some workarounds: 1) Is t

Re: [Rd] CRAN package with dependencies on Bioconductor

2011-06-10 Thread Kornelius Rohmeyer
Dear Martin, thanks for your response. >> The superclass graphBase is introduced in graph 1.30. In my >> understanding the problem is that our package gMCP is build on CRAN >> for R 2.12 with the package graph in version 1.30. Unfortunately >> biocLite installs graph_1.28.0.zip for R 2.12. > > bi

Re: [Rd] CRAN package with dependencies on Bioconductor

2011-06-10 Thread Martin Morgan
On 06/10/2011 05:46 PM, Kornelius Rohmeyer wrote: Dear Martin, thanks for your response. The superclass graphBase is introduced in graph 1.30. In my understanding the problem is that our package gMCP is build on CRAN for R 2.12 with the package graph in version 1.30. Unfortunately biocLite ins

Re: [Rd] CRAN package with dependencies on Bioconductor

2011-06-10 Thread Kornelius Rohmeyer
2011/6/11 Martin Morgan : > On 06/10/2011 05:46 PM, Kornelius Rohmeyer wrote: >> >> Dear Martin, >> >> thanks for your response. >> The superclass graphBase is introduced in graph 1.30. In my understanding the problem is that our package gMCP is build on CRAN for R 2.12 with the pack

Re: [Rd] CRAN package with dependencies on Bioconductor

2011-06-10 Thread Kornelius Rohmeyer
2011/6/11 Duncan Murdoch : > On 11-06-10 7:04 PM, Kornelius Rohmeyer wrote: >> Dear all, >> >> for a CRAN-package that depends on another Bioconductor-package I find >> two things annoying and would like to know whether there are some >> workarounds: >> >> 1) Is there some inevitable problem that i

Re: [Rd] CRAN package with dependencies on Bioconductor

2011-06-10 Thread Prof Brian Ripley
Note that until May 8 graph was a CRAN packge and the current version was 1.30.0. So of course CRAN binary packages built between April 26 and May 8 were built against the current CRAN version of graph, for any version of R. On Fri, 10 Jun 2011, Martin Morgan wrote: On 06/10/2011 05:46 PM,