[Rd] Problems building own package (Error: package has been build before R-2.10.0)

2010-08-17 Thread Janko Thyson
stated there is “C:\R\R-2.11.1\bin;”. - I updated the DESCRIPTION file and specified all .Rd files correctly. Any idea what I’m doing wrong? Thanks a ton, Janko _ Janko Thyson mailto:holger.ko...@ku-eichstaett.de janko.thy...@ku-eichstaett.de Catholic University

Re: [Rd] [R] Problems building own package (Error: package has been build before R-2.10.0)

2010-08-17 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de] Gesendet: Dienstag, 17. August 2010 22:00 An: Janko Thyson Cc: r-de...@r-project. org Betreff: Re: [R] Problems building own package (Error: package has been build before R-2.10.0

Re: [Rd] [R] Problems building own package (Error: package hasbeen build before R-2.10.0)

2010-08-18 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: William Dunlap [mailto:wdun...@tibco.com] Gesendet: Dienstag, 17. August 2010 22:25 An: Janko Thyson Betreff: RE: [Rd] [R] Problems building own package (Error: package hasbeen build before R-2.10.0) ... R CMD check mypackage works fine

[Rd] Automatically retrieve correct collation

2010-08-18 Thread Janko Thyson
Dear List, consider the following scenario: setClass(Class = A, representation = representation(B = B, C = C)) setClass(Class = B, representation = representation(C = C)) setClass(Class = C, representation = representation(something = character)) Obviously, the collation for sourcing these

Re: [Rd] Automatically retrieve correct collation

2010-08-19 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: baptiste auguie [mailto:baptiste.aug...@googlemail.com] Gesendet: Donnerstag, 19. August 2010 07:41 An: Janko Thyson Cc: r-de...@r-project. org Betreff: Re: [Rd] Automatically retrieve correct collation Hi, roxygen can create the collate field

[Rd] Stats not loaded? Method for as.ts() results in error

2010-09-03 Thread Janko Thyson
Dear list, I've got the following problem: In a package I'm trying to build, there exists a method for the function as.ts(). When checking the package, R always throws the error that it cannot find a function called as.ts. To me it seems that the package stats (home of as.ts()) is not

Re: [Rd] Stats not loaded? Method for as.ts() results in error

2010-09-03 Thread Janko Thyson
] Gesendet: Freitag, 3. September 2010 15:57 An: Janko Thyson Cc: r-de...@r-project. org Betreff: Re: [Rd] Stats not loaded? Method for as.ts() results in error Janko, You don't mention if you are using S3 or S4. A small example would make it easier to identify where your problem is. Jeff

[Rd] Roxygen: question regarding 'use.Rd2' and creation of DESCRIPTION

2010-09-15 Thread Janko Thyson
Dear List, I ran into the following two problems while using the package 'roxygen': QUESTION 1 I split the relevant R-Code for my package into the following scripts: classes.R (S4), functions.R ('standard' functions), generics.R (S4), methods.R (S4). Function package.skeleton() generates

Re: [Rd] a small suggestion for improving the building of packages

2010-09-16 Thread Janko Thyson
From: Uwe Ligges ligges_at_statistik.tu-dortmund.de Date: Wed, 15 Sep 2010 15:23:01 +0200 On 29.08.2010 22:34, Kyle Matoba wrote: All, I just finished the process of build a package for the first time and found it characteristically (for R) very straightforward and well documented.

Re: [Rd] a small suggestion for improving the building of packages

2010-09-16 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: William Dunlap [mailto:wdun...@tibco.com] Gesendet: Donnerstag, 16. September 2010 20:45 An: Janko Thyson; r-de...@r-project. org Betreff: RE: [Rd] a small suggestion for improving the building of packages From: r-devel-boun...@r-project.org

Re: [Rd] a small suggestion for improving the building of packages

2010-09-16 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] Gesendet: Donnerstag, 16. September 2010 20:55 An: Uwe Ligges Cc: Janko Thyson; r-de...@r-project. org Betreff: Re: [Rd] a small suggestion for improving the building of packages On 16/09/2010 2:43

[Rd] How to set up an own package repository

2010-09-17 Thread Janko Thyson
Dear List, I'd like to set up a package repository so I can use install.packages() on it for home-grown packages. I set up an AMPP infrastructure on a windows box already, but I'm pretty lost with respect to what to do next as I didn't do any web-programming/admin yet. Could anyone recommend

Re: [Rd] a small suggestion for improving the building of packages

2010-09-17 Thread Janko Thyson
control and run future development out that system. Can you explain why you would need to re-run package.skeleton()? Is there some use case that I am missing?    Kevin On 9/16/2010 1:18 PM, Janko Thyson wrote: Dear Uwe, in principle, I totally agree with your point of politely

Re: [Rd] How to set up an own package repository

2010-09-17 Thread Janko Thyson
Thank you very much for the advice! Cheers, Janko -Ursprüngliche Nachricht- Von: Friedrich Leisch [mailto:friedrich.lei...@stat.uni-muenchen.de] Gesendet: Freitag, 17. September 2010 16:39 An: Janko Thyson Cc: r-de...@r-project. org Betreff: Re: [Rd] How to set up an own package

[Rd] Including data in packages

2010-10-14 Thread Janko Thyson
Dear List, I would like to include a couple of objects in a package I am developing and I don't really get it yet. The objects should be available after package load as some functions depend on it. I tried the following: 1) Bundling all objects that I need in the file

Re: [Rd] Including data in packages

2010-10-14 Thread Janko Thyson
) to the tar.gz and eventually to the installed package? Regards, Janko -Ursprüngliche Nachricht- Von: Dirk Eddelbuettel [mailto:e...@debian.org] Gesendet: Donnerstag, 14. Oktober 2010 21:18 An: Janko Thyson Cc: r-de...@r-project. org Betreff: Re: [Rd] Including data in packages On 14

Re: [Rd] Including data in packages

2010-10-14 Thread Janko Thyson
] Gesendet: Donnerstag, 14. Oktober 2010 21:35 An: Janko Thyson Betreff: RE: [Rd] Including data in packages Janko, You have to save the data objects you want into that directory in your source package. Then when you build/install it will be there. Regards, Brian -Original Message

[Rd] Roxygen: @example tag does not work for me

2010-11-03 Thread Janko Thyson
#' @references #' \url{http://www.something.org /} #' @author Janko Thyson \email{my.email@@something.com} #' @example tests/foo.R #' @seealso \code{\link{some.other.function}} Foo - function(a, b){cat(Doing nothing useful.)} I thought that @example would take the R code in tests/foo.R

Re: [Rd] Roxygen: @example tag does not work for me

2010-11-04 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: baptiste auguie [mailto:baptiste.aug...@googlemail.com] Gesendet: Donnerstag, 4. November 2010 07:43 An: Janko Thyson Cc: r-de...@r-project. org Betreff: Re: [Rd] Roxygen: @example tag does not work for me Hi, I think you could achieve this using

Re: [Rd] [Roxygen-devel] Roxygen: @example tag does not work for me

2010-11-04 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: roxygen-devel-boun...@lists.r-forge.r-project.org [mailto:roxygen- devel-boun...@lists.r-forge.r-project.org] Im Auftrag von Vinh Nguyen Gesendet: Donnerstag, 4. November 2010 04:04 An: roxygen-de...@r-forge.wu-wien.ac.at Betreff: Re: [Roxygen-devel]

Re: [Rd] [Roxygen-devel] Roxygen: @example tag does not work for me

2010-11-04 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: Vinh Nguyen [mailto:vqngu...@uci.edu] Gesendet: Donnerstag, 4. November 2010 17:15 An: Janko Thyson Cc: r-de...@r-project. org Betreff: Re: [Roxygen-devel] Roxygen: @example tag does not work for me I didn't know @example path/to/file.R was available

Re: [Rd] Roxygen: @example tag does not work for me

2010-11-04 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: h.wick...@gmail.com [mailto:h.wick...@gmail.com] Im Auftrag von Hadley Wickham Gesendet: Donnerstag, 4. November 2010 19:00 An: Janko Thyson Cc: r-de...@r-project. org Betreff: Re: [Rd] Roxygen: @example tag does not work for me I thought

[Rd] Create NAMESPACE file as 'package.skeleton()' would do

2010-11-15 Thread Janko Thyson
Hi there, is there a way to create a NAMESPACE file based on Rd-files (or whatever is needed in order to apply the regular expression ^[[:alpha:]]+ without(!) resorting to package.skeleton() (as this kind of interferes with roxygenize() pretty often)? Thanks a lot, Janko

[Rd] R5 reference classes: how to initialize exactly?

2010-11-15 Thread Janko Thyson
Dear List, So far, I really like those new R5 classes. But what kind of puzzles me is that it's not just enough to define the actual reference class, I also have to assign it to an object (e.g. 'MyRefObj') in order to fire 'MyRefObj$new(.)'. S4: setClass(Blabla, .) x - new(Blabla)

Re: [Rd] R5 reference classes: how to initialize exactly?

2010-11-15 Thread Janko Thyson
Sorry, I was stupid: MyRefObj - setRefClass(Blabla, .) One can always get the generator object of an defined class with 'getRefClass()'. So: g - getRefClass(Blabla) x - g$new(.) Regards, Janko Von: Janko Thyson [mailto:janko.thy...@ku-eichstaett.de] Gesendet: Dienstag, 16

Re: [Rd] R5 reference classes: how to initialize exactly?

2010-11-17 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: Simon Urbanek [mailto:simon.urba...@r-project.org] Gesendet: Mittwoch, 17. November 2010 11:35 An: Janko Thyson Cc: 'r-de...@r-project. org' Betreff: Re: [Rd] R5 reference classes: how to initialize exactly? Just a clarification for posterity - R5

[Rd] Reference classes: accessor functions via 'getRefClass(...)$accessors(...)'

2010-11-17 Thread Janko Thyson
Hi there, I'd like to choose between an static and dynamic access of a reference class field, say 'a'. myObj - getRefClass(Blabla)$new() Static: myObj$a Dynamic: myObj$a.get() where the function retrieves the data from a database (or some other location),

Re: [Rd] Reference classes: accessor functions via 'getRefClass(...)$accessors(...)'

2010-11-17 Thread Janko Thyson
Thanks a lot for the comments! I'll give the serveral alternatives a try to see if it gets me what I want. Cheers, Janko -Ursprüngliche Nachricht- Von: Vitalie S. [mailto:spinuvit.l...@gmail.com] Gesendet: Mittwoch, 17. November 2010 13:51 An: Janko Thyson Cc: 'r-de...@r-project

[Rd] Compiling R 2.12.0 from source: error (temp dir)

2010-11-17 Thread Janko Thyson
Dear list, I've just tried to compile R 2.12.0 from source as I think I found an error in a C function that I would like to fix and check before I go ahead with posting the presumed error. I've got the R Toolset 2.12 installed and configured correctly and followed the Admin manual closely

[Rd] WG: Reference classes: opinion on OOP design

2010-11-17 Thread Janko Thyson
Sorry, never sent an attachment before. I think my .R file didn't pass, so I'm attaching a .txt instead. -Ursprüngliche Nachricht- Von: Janko Thyson [mailto:janko.thy...@ku-eichstaett.de] Gesendet: Mittwoch, 17. November 2010 19:56 An: 'r-de...@r-project. org' Betreff: Reference classes

Re: [Rd] Compiling R 2.12.0 from source: error (temp dir)

2010-11-18 Thread Janko Thyson
]: *** [init.o] Error 1 make[3]: *** [mksrc-win] Error 1 make[2]: *** [all] Error 2 make[1]: *** [R] Error 1 make: *** [all] Error 2 SYSTEM INFO: - Windows XP SP 3 - R-2.12.0 - Eclipse 3.6.1 - StatET 0.9.x -Ursprüngliche Nachricht- Von: Janko Thyson [mailto:janko.thy...@ku

Re: [Rd] Compiling R 2.12.0 from source: error (temp dir)

2010-11-18 Thread Janko Thyson
. November 2010 12:54 An: Janko Thyson Cc: 'r-de...@r-project. org' Betreff: Re: [Rd] Compiling R 2.12.0 from source: error (temp dir) On 18/11/2010 5:40 AM, Janko Thyson wrote: I've created a /tmp directory so I wouldn't have to change TMPDIR. So far, so good. But now I get the error below

Re: [Rd] Compiling R 2.12.0 from source: error (temp dir)

2010-11-18 Thread Janko Thyson
# Windows XP SP3 R 2.12.0 Eclipse 3.6.1 (Helios) StatET 0.9.x # -Ursprüngliche Nachricht- Von: Janko Thyson [mailto:janko.thy...@ku-eichstaett.de] Gesendet: Donnerstag, 18. November 2010 16:38 An: 'Duncan Murdoch' Cc: 'r-de...@r-project. org' Betreff: AW: [Rd

[Rd] Ref classes: can I register fields as I register methods?

2010-11-21 Thread Janko Thyson
Hi there, is it possible to register fields as you can register methods with getRefClass(Classname)$methods(.)? I know that you should usually give some thought on which fields you need and hardcode them in the class def. But I'm playing around with dynamically creating/extending sort of a

[Rd] reference classes: question on inheritance

2010-11-21 Thread Janko Thyson
Dear list, I have a reference class which should act as a generic superclass for other classes. I've read the respective section at ?setRefClass and put the name of the superclass to the 'contains' argument of an example subclass (see class defs below). Classnames are set in a way that shouldn't

Re: [Rd] reference classes: question on inheritance

2010-11-21 Thread Janko Thyson
Hmm, interesting: it's the virtual class that causes the trouble. If a virtual class is a ref class, everything works fine. If it's a standard S4 class, it results in the error below. Regards, Janko -Ursprüngliche Nachricht- Von: Janko Thyson [mailto:janko.thy...@ku-eichstaett.de

Re: [Rd] [R] Catching a RCurl error?

2010-11-23 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Im Auftrag von Tal Galili Gesendet: Dienstag, 23. November 2010 14:18 An: r-h...@r-project.org Betreff: [R] Catching a RCurl error? Hi all, I'm running a complex script which

[Rd] Reference Classes: removing methods - implications for objects/instances of that class

2010-11-23 Thread Janko Thyson
Dear list, just to make sure that I understand 'unregistering' methods for S4 reference classes correctly: If I registered a method and want to 'unregister' (i.e. remove) this method again, objects/instance created of the respective class still feature the removed method until I do an explicit

[Rd] Reference Classes: how to clone/copy instances?

2010-11-24 Thread Janko Thyson
Dear list, I don't know what's the correct term for this in the OOP context, but is it possible to clone/copy an instance of a reference class (say 'a') so that I get an *autonomous* second instance 'b'? Autonomous in the sense that changes to 'a' do not affect 'b'. I know that this is somewhat

Re: [Rd] setGeneric for residuals, etc

2011-01-21 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: r-devel-boun...@r-project.org [mailto:r-devel-bounces@r- project.org] Im Auftrag von Johann Hibschman Gesendet: Donnerstag, 20. Januar 2011 16:25 An: r-de...@stat.math.ethz.ch Betreff: [Rd] setGeneric for residuals, etc I'm experimenting with a few

[Rd] Simulate package namespace at development stage

2011-01-23 Thread Janko Thyson
Dear list, I was wondering if it is possible to create and use a package namespace at the development stage of a package. To clarify, I would like to make sure that my package functions (and not some other functions that happen to have identical names) are called by prepending function names

[Rd] Error handling with frozen RCurl function calls + Identification of frozen R processes

2011-01-26 Thread Janko Thyson
Dear list, I'm tackling an empiric research problem that requires me to address a whole bunch of conceptual and/or technical details at the same time which cuts time short for all the nitty-gritty details of the components involved. Having said this, I'm lacking the time at the moment to deeply

[Rd] Error handling with frozen RCurl function calls + Identification of frozen R processes

2011-01-26 Thread Janko Thyson
Dear list, I'm tackling an empiric research problem that requires me to address a whole bunch of conceptual and/or technical details at the same time which cuts time short for all the nitty-gritty details of the components involved. Having said this, I'm lacking the time at the moment to deeply

[Rd] Avoiding name clashes: opinion on best practice naming conventions

2011-02-16 Thread Janko Thyson
Dear List, I'm trying to figure out some best practice way with respect to the naming conventions when building own packages. I'd like to minimize the risk of choosing function names that might interfere with those of other packages (both available ones and those yet to come). I came up with

[Rd] Reference classes: error with missing arguments in method calls

2011-02-20 Thread Janko Thyson
Dear list, I'm having problems in understanding an error that pops up in the context of missing arguments with methods of reference class objects. Because of the following statement taken from '?referenceClass', my ref class methods call explicit S4 methods: Reference methods should be

[Rd] Run script automatically when package is loaded

2011-03-12 Thread Janko Thyson
Dear list, is it possible to specify a script that is executed automatically when my package is mounted via 'require(my.pkg)' or 'library(my.pkg)'? Id' like to specify execute a small init function that creates some crucial environment structures. As it's always the first thing to do when using

[Rd] Possible bug in 'relist()' and/or 'as.relistable()'

2011-04-14 Thread Janko Thyson
Dear list, I think I just stumbled across a bug in either 'relist()' and/or 'as.relistable()'. It seems that 'pairlists' can only be un- and relisted as long as they're not nested: Good: a - as.relistable(as.pairlist(list(a=1, b=2))) a - unlist(a) relist(a)# Works Bad: a -

[Rd] Replacing '.self' with an .Rda image of '.self' from within a method?

2011-05-02 Thread Janko Thyson
Dear list, Is it possible to update or reassign '.self' with an image of '.self' (e.g. a locally stored .Rda file) from within a method? I know that this might sound akward, but here's the use case: 1) Ref Class Definition setRefClass(Class=Test, fields=list(A=character,

[Rd] Reference Classes: replacing '.self' with an .Rda image of '.self' from within a method? (was replacing '.self' with an .Rda image of '.self' from within a method?)

2011-05-04 Thread Janko Thyson
Sorry guys, but I chose a really stupid name before (no reference classes). Hope it's okay to re-post. Cheers, Janko ORIGINAL MESSAGE Dear list, Is it possible to update or reassign '.self' with an image of '.self' (e.g. a locally stored .Rda file) from within a method? I know that

[Rd] Feature request: extend functionality of 'unlist()' by args 'delim=c(/, _, etc.)' and 'keep.special=TRUE/FALSE'

2011-05-19 Thread Janko Thyson
-- *Janko Thyson* janko.thy...@ku-eichstaett.de mailto:janko.thy...@ku-eichstaett.de Catholic University of Eichstätt-Ingolstadt Ingolstadt School of Management Statistics and Quantitative Methods Auf der Schanz 49 D-85049 Ingolstadt www.wfi.edu/lsqm

Re: [Rd] Feature request: extend functionality of 'unlist()' by args 'delim=c(/, _, etc.)' and 'keep.special=TRUE/FALSE'

2011-05-19 Thread Janko Thyson
On 19.05.2011 14:58, Duncan Murdoch wrote: On 19/05/2011 8:15 AM, Janko Thyson wrote: Dear list, I hope this is the right place to post a feature request. If there's exists a more formal channel (e.g. as for bug reports), I'd appreciate a pointer. This is a good place to post. I work

Re: [Rd] Feature request: extend functionality of 'unlist()' by args 'delim=c(/, _, etc.)' and 'keep.special=TRUE/FALSE'

2011-05-19 Thread Janko Thyson
On 19.05.2011 14:58, Duncan Murdoch wrote: On 19/05/2011 8:15 AM, Janko Thyson wrote: Dear list, I hope this is the right place to post a feature request. If there's exists a more formal channel (e.g. as for bug reports), I'd appreciate a pointer. This is a good place to post. I work

[Rd] Is it possible to define a function's arguments via a wildcard in 'substitute()'?

2011-05-26 Thread Janko Thyson
Dear List, just out of pure curiosity: is it possible to define a function via 'substitute()' such that the function's formal arguments are specified by a wildcard that is substituted when the expression is evaluated? Simple example: x.args - formals(data.frame) x.body - expression( out

Re: [Rd] Is it possible to define a function's arguments via a wildcard in 'substitute()'?

2011-05-26 Thread Janko Thyson
+ list of arguments, it's best to use call or as.call: call(f, a = 1, b = 2, c = 3) or if you already have the list: l- list(as.name(f), a = 1, b = 2, c = 3) as.call(l) Hadley On Thu, May 26, 2011 at 10:15 AM, Janko Thyson janko.thyson.rst...@googlemail.com wrote: Dear List, just out

[Rd] Reference Classes: getter and setter functions/methods and possible shortcuts

2011-05-26 Thread Janko Thyson
Hi everyone, just wanted to ask what's the smartest/recommended way of defining getter and setter function *shortcuts* (i.e. something like [, [-) for Reference Class objects? Or is it desired to not use this stuff, but define methods like 'obj$getSubset(row=1:3, col=1)' and

[Rd] Reference Classes: strange behavior when trying to change class def in the same R session

2011-05-26 Thread Janko Thyson
Dear list, I'm getting some strange behavior with Reference Classes every once in a while and I can't really put my finger on the cause. It'd be great if someone using Reference Classes could check if he/she experiences similar problems: The thing is that when I alter the definition of a

[Rd] Reference Classes/S4 Classes: can method dispatch check superclasses BEFORE resorting to method for ANY?

2011-05-27 Thread Janko Thyson
Dear list, is it possible that method dispatch checks for superclasses/virtual classes before checking ANY? I'd like to build a generic initialization method for all my Reference Class (say MyDataFrame) objects by having them inherit from class, say MyRefClassVirtual (which would have to be

Re: [Rd] Reference Classes/S4 Classes: can method dispatch check superclasses BEFORE resorting to method for ANY?

2011-05-27 Thread Janko Thyson
Cool, thanks a lot for the insight! I forgot that there is the option to use 'contains=VIRTUAL and probably out of laziness usually set my virtual S4 classes simply via 'setClass(Something)'. On 27.05.2011 15:22, Martin Morgan wrote: On 05/27/2011 06:13 AM, Janko Thyson wrote: Dear list

[Rd] Query super- and subclasses of a class: is there a better way than to use 'completeClassDefinition()'

2011-05-30 Thread Janko Thyson
to everyone on this list who takes the time to provide such great help! Janko -- *Janko Thyson* janko.thy...@googlemail.com mailto:janko.thy...@googlemail.com Jesuitenstraße 3 D-85049 Ingolstadt Mobile: +49 (0)176 83294257

Re: [Rd] Query super- and subclasses of a class: is there a better way than to use 'completeClassDefinition()'

2011-06-01 Thread Janko Thyson
. Thanks, Janko On 31.05.2011 18:15, Martin Morgan wrote: On 05/30/2011 08:54 AM, Janko Thyson wrote: Dear List, when I first started to use S4 classes, I used the function 'completeClassDef()' in order to see the super- and subclasses of a certain class: Hi Janko -- I think 'complete

[Rd] Bug or feature: using ANY as a generic field class (was: '[R] Is there a (virtual) class that all R objects inherit from?)

2011-06-03 Thread Janko Thyson
Thyson wrote: On 31.05.2011 18:17, Martin Morgan wrote: On 05/30/2011 07:02 AM, Janko Thyson wrote: Dear list, I would like to set one specific Reference Class field to be of an arbitrary class. Is there a class that all R objects inherit from? I thought that ANY was something like

Re: [Rd] Bug or feature: using ANY as a generic field class (was: '[R] Is there a (virtual) class that all R objects inherit from?)

2011-06-06 Thread Janko Thyson
(character) of field .PRIMARYDATA is not a subclass of the existing field definition (ANY) We'll fix that. And, yes, ANY is intended as a universal superclass, but is usually not mentioned explicitly. On 6/3/11 6:53 AM, Janko Thyson wrote: Dear list, I was wondering if you could help me out

[Rd] Reference Classes: shortcut like 'isS4' for Ref Classes?

2011-06-06 Thread Janko Thyson
Dear list, is there a shortcut-function to check whether a class is a Reference Class or not? There's something like this for S4 classes ('isS4(object)'), but I couldn't find anything regarding Ref Classes. Currently, I'm doing it this way, which is a bit clumsy: A - setRefClass(A,

Re: [Rd] Reference Classes: shortcut like 'isS4' for Ref Classes?

2011-06-07 Thread Janko Thyson
So, is(x, envRefClass) And, less well documented but less typing: is(x, refClass) also works. On 6/6/11 9:48 AM, Janko Thyson wrote: Dear list, is there a shortcut-function to check whether a class is a Reference Class or not? There's something like this for S4 classes ('isS4(object

[Rd] Rtools (Windows XP): what dir is meant by R source directory?

2011-06-09 Thread Janko Thyson
Dear list, thanks for providing such a great thing as the Rtools! Everytime I install it, though, I'm somewhat puzzled when it comes to the section Select R Source Home Directory (32 bit and 64 builds). Is the folder that I need to specify here a) simply the root folder of my R installation

Re: [Rd] Rtools (Windows XP): what dir is meant by R source directory?

2011-06-09 Thread Janko Thyson
On 09.06.2011 15:58, Uwe Ligges wrote: On 09.06.2011 15:07, Janko Thyson wrote: Dear list, thanks for providing such a great thing as the Rtools! Everytime I install it, though, I'm somewhat puzzled when it comes to the section Select R Source Home Directory (32 bit and 64 builds

[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

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 janko.thyson.rst...@googlemail.com 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

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 janko.thyson.rst...@googlemail.com wrote: On 10.06.2011 13:00, Gabor Grothendieck wrote: On Fri, Jun 10, 2011 at 6:04 AM, Janko Thyson janko.thyson.rst...@googlemail.com wrote: Dear list, I've been

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

2011-06-14 Thread Janko Thyson
of the other paths at load time. Hopefully this will resolve these continuing issues. Michael On Fri, Jun 10, 2011 at 6:07 AM, Janko Thyson janko.thyson.rst...@googlemail.com wrote: Okay, at least some positive result today (language issue ;-)) Thanks for trying. Seems like GTK2 and me

[Rd] Ref Classes: bug with using '.self' within initialize methods?

2011-06-29 Thread Janko Thyson
Dear list, I'm wondering if the following error I'm getting is a small bug in the Reference Class paradigm or if it makes perfect sense. When you write an explicit initialize method for a Ref Class, can you then make use of '.self' WITHIN this initialize method just as you would once an

[Rd] Bug: argument 'lib.loc' not passed on appropriately in 'library()'?

2011-08-18 Thread Janko Thyson
Dear list, I'm experimenting with setting up custom 'lib' and 'destdir' directories for my R packages. It seems to me that 'library()' does handle a custom 'lib.loc' argument the way it should for an arbitrary package but NOT for its dependencies on other packages. The latter are looked for

[Rd] Increase transparency: suggestion on how to avoid namespaces and/or unnecessary overwrites of existing functions

2011-08-23 Thread Janko Thyson
aDear list, I'm aware of the fact that I posted on something related a while ago, but I just can't sweat this off and would like to ask your for an opinion: The problem: Namespaces are great, but they don't resolve certain conflicts regarding name clashes. There are more and more people out

[Rd] Implementing a plugin paradigm with R methods

2011-08-23 Thread Janko Thyson
Dear list, I was wondering how to best implement some sort of a plugin paradigm using R methods and the dispatcher: Say we have a function/method ('foo') that does something useful, but that should be open for extension in ONE specific area by OTHERS using my package. Of course they could go

Re: [Rd] Implementing a plugin paradigm with R methods

2011-08-24 Thread Janko Thyson
Hi Martin, thanks a lot for the quick reply. I'll try your suggestions. Regards, Janko On 24.08.2011 06:37, Martin Morgan wrote: On 08/23/2011 03:02 PM, Janko Thyson wrote: Dear list, I was wondering how to best implement some sort of a plugin paradigm using R methods and the dispatcher

[Rd] Bug in 'setRefClass()' regarding how args in '...' are passed to 'setClass()'?

2011-08-24 Thread Janko Thyson
Dear list, in ?setRefClass it says that '...' can be used to supply other arguments that are passed to 'setClass()'. Yet, I think that's not true for argument 'prototype', but maybe I overlooked something: setClass(Plugin) setClass(Class=PluginDefault, contains=Plugin,

Re: [Rd] Implementing a plugin paradigm with R methods

2011-08-24 Thread Janko Thyson
-- On 24.08.2011 06:37, Martin Morgan wrote: On 08/23/2011 03:02 PM, Janko Thyson wrote: Dear list, I was wondering how to best implement some sort of a plugin paradigm using R methods and the dispatcher: Say we have a function/method ('foo') that does something useful, but that should be open

[Rd] Possible bug in 'new()' for Reference Classes

2011-12-07 Thread Janko Thyson
Dear list, I think I stumbled across a little bug with respect to the standard initialization routine for Reference Classes. It seems that a field 'self' is treated as if it's name would be '.self' (which we know is reserved for the self reference of the instantiated object itself) and thus

[Rd] S4 Reference Classes: declaring public and private methods

2012-06-18 Thread Janko Thyson
-and-private-methods-s4-reference-c Thanks a lot, Janko Thyson __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Feature request: workaround for 'Sys.timezone()' issue for German MS-Windows

2012-07-05 Thread Janko Thyson
addressing this. Thank you very much, Janko Thyson __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Workarounds/solutions to Rd file name conflict when extending a S4 method of some other package

2012-12-07 Thread Janko Thyson
Dear list, this is a re-post of my post to r-help on 2012-30-11. Duncan Murdoch did provide a great pointer to a possible workaround, but I'm still eager to check out other ways. So I hope it's okay to get this out on r-devel now as well: // IN SHORT // What are possible workarounds to

[Rd] Feature request: mixing `...` (three dots) with other formal arguments in S4 methods

2014-11-27 Thread Janko Thyson
Dear List, I'm currently investigating if the argument dispatch mechanism based on `...` could somehow be generalized to scenarios that involve `r` recipients located across `c` calling stack layers *and* combined with the S4 method mechanism (for those interested see

Re: [Rd] Feature request: mixing `...` (three dots) with other formal arguments in S4 methods

2014-11-27 Thread Janko Thyson
class or superclasses. If no further eligible classes exist, the iteration breaks out and the default method, if any, is selected. No mention of argument name there. ~G On Thu, Nov 27, 2014 at 9:45 AM, Janko Thyson janko.thy...@gmail.com wrote: Dear List, I'm currently investigating

Re: [Rd] Feature request: mixing `...` (three dots) with other formal arguments in S4 methods

2014-11-27 Thread Janko Thyson
it? And if the generic has ... in it, you can (if you're very careful) add formals to specific methods that would capture arguments not meant for other methods of the same generic. ~G On Thu, Nov 27, 2014 at 11:26 AM, Janko Thyson janko.thy...@gmail.com wrote: Hi Gabriel, and thanks

[Rd] Significant memory leak when using XML on Windows

2014-12-11 Thread Janko Thyson
Dear list, I'm sorry to keep coming back with this time and time again, but this bug is still not fixed even though the root cause of the issue has been around for 2-3 years now. And as the number of packages that depend on XML grows, I thought maybe this deserves some wider attention. I did my

Re: [Rd] Significant memory leak when using XML on Windows

2014-12-15 Thread Janko Thyson
possibly be a great way to start! How would I go about that? Thanks if you should take the time to further look into this! Janko On Mon, Dec 15, 2014 at 4:54 AM, Jeroen Ooms jeroeno...@gmail.com wrote: On Thu, Dec 11, 2014 at 12:13 PM, Janko Thyson janko.thy...@gmail.com wrote: I'd so much

Re: [Rd] Significant memory leak when using XML on Windows

2014-12-15 Thread Janko Thyson
Sorry guys, didn't see your responses before sending mine. Thanks jeroen!! I'll test your version today and get back to you. Gesendet von meinem Smartphone Am 15.12.2014 12:12 schrieb Janko Thyson janko.thy...@gmail.com: Thanks a lot for answering. Before I get into it, please note

Re: [Rd] Significant memory leak when using XML on Windows

2014-12-15 Thread Janko Thyson
Sorry guys, didn't see your responses before sending mine. Thanks jeroen!! I'll test your version today and get back to you. Gesendet von meinem Smartphone Am 15.12.2014 12:12 schrieb Janko Thyson janko.thy...@gmail.com: Thanks a lot for answering. Before I get into it, please note

Re: [Rd] Significant memory leak when using XML on Windows

2014-12-15 Thread Janko Thyson
- getCurrentMemoryStatus() rbind(data.frame(mem_1), data.frame(mem_2)) r osratio 1 63.65 87.148 1.369175 2 97.63 122.160 1.251255 On Mon, Dec 15, 2014 at 12:25 PM, Janko Thyson janko.thy...@gmail.com wrote: Sorry guys, didn't see your responses before sending mine. Thanks jeroen!! I'll