[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 Univ

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 >

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") > > &

[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 sour

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, > >

[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 n

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

2010-09-03 Thread Janko Thyson
> -Ursprüngliche Nachricht- > Von: Jeff Ryan [mailto:jeff.a.r...@gmail.com] > 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

[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 Rd-files

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

2010-09-16 Thread Janko Thyson
> From: Uwe Ligges > 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. > > > > Whenever I deal

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 > > &

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 > pac

[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 so

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

2010-09-17 Thread Janko Thyson
and over".  When I'm developing > >> packages, I never run it more than once.  And I usually delete a lot > >> of the files it produces (since I like to organize my functions in > >> logical batches and  not in separate files).  And once I think I > >> have the fil

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] Ho

[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 '/R/sysdata.r

Re: [Rd] Including data in packages

2010-10-14 Thread Janko Thyson
" (sorry, I don't know a better word) 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

Re: [Rd] Including data in packages

2010-10-14 Thread Janko Thyson
ailto:b.r...@baml.com] > 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/in

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

2010-11-03 Thread Janko Thyson
bla. #' @return \code{TRUE}. #' @callGraphPrimitives #' @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,

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, >

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-dev

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 kno

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 fo

[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 [[alte

[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:j

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? > >

[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 loca

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

[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] Reference classes: opinion on OOP design

2010-11-17 Thread Janko Thyson
Dear list, I'm aware that this post does not really comply with the posting guide with respect to "providing a minimal reproducible code example". But I do hope it's okay that I spared uninterested readers by putting that into the attachment ;-) The thing is that I'm not really familiar with "tru

[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' Betref

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

2010-11-18 Thread Janko Thyson
> -Ursprüngliche Nachricht- > Von: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] > Gesendet: Mittwoch, 17. November 2010 18:42 > An: Janko Thyson > Cc: 'r-de...@r-project. org' > Betreff: Re: [Rd] Compiling R 2.12.0 from source: error (temp dir) > &g

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

2010-11-18 Thread Janko Thyson
ed. make[4]: *** [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

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

2010-11-18 Thread Janko Thyson
o:murdoch.dun...@gmail.com] > Gesendet: Donnerstag, 18. 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

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

2010-11-18 Thread Janko Thyson
TEM INFO # 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: '

[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

[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...@

Re: [Rd] reference classes: question on inheritance

2010-11-22 Thread Janko Thyson
orks fine for me. > > John Thanks, I didn't even know there existed a patched build as I usually skipped the x.x.0 versions of R. But ref classes really seemed worth a try. Cheers, Janko # SYSTEM INFO # Windows XP SP3 R 2.12.0 (patched as of 2010-11-22) Eclipse 3.6.1 (Helios) Sta

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 wh

[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 re

[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 somewha

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

[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 appro

[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 fol

[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 ke

[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 <- as.relistable(as.pa

[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", B="cha

[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 t

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

2011-05-19 Thread Janko Thyson
ding such fast stuff as 'unlist()'! Unfortunately, I don't know my way around internal C routines and therefore I would greatly appreciate if core team developers would consider my two suggestions. Best regards, Janko --

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 >>

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 >>

[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(

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

2011-05-26 Thread Janko Thyson
ying around ;-) Thanks, Janko On 26.05.2011 18:08, Hadley Wickham wrote: > I think for the case where you want to built up a call from a function > name + list of arguments, it's best to use call or as.call: > > call("f", a = 1, b = 2, c = 3) > > or if you al

[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 'obj$setSubse

[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 Ref

[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

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

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

2011-05-30 Thread Janko Thyson
e super-/subclasses of a certain S4/Reference Class? Best regards and I'd like to take this opportunity to express my gratitude to everyone on this list who takes the time to provide such great help! Janko -- *Ja

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

2011-06-01 Thread Janko Thyson
now my way around class details yet. 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

[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
Janko On 06/03/2011 01:53 AM, Janko 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

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
etRefClass( + Class="B", + fields=list( + .PRIMARYDATA="character" + ), + contains=c("A") + ) Error in `insertFields<-`(`*tmp*`, value = "character") : The overriding class("character") of field ".PRIMARYDATA" is not a subclass of the

Re: [Rd] Bug or feature: using "ANY" as a generic field class

2011-06-06 Thread Janko Thyson
Wow, that was fast! Thanks a lot! Regards, Janko On 06.06.2011 18:29, John Chambers wrote: > Should now behave as expected in r-devel and 2.13 patched, as of SVN > 56045, June 4. (noted in the NEWS file.) > > > On 6/6/11 6:27 AM, Janko Thyson wrote: >> Thanks a lot for you

[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", fields

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

2011-06-07 Thread Janko Thyson
Class" 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 lik

[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 installatio

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 &g

[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 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 &

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

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

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

2011-06-10 Thread Janko Thyson
). On Fri, 10 Jun 2011, Janko Thyson wrote: 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 so

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

2011-06-14 Thread Janko Thyson
> > If there are any lines beginning with [2] in the output, there are > multiple > versions of DLLs and these are potential problems (check that either the > DLLs are the same version, or that the GTK2 version is ahead on the path). > > Note that is is not sufficient that the

[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 object

[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 in

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

2011-08-18 Thread Janko Thyson
Sorry, embarrassing stupid error: of course '.libPaths(path.r.lib)' will do the trick for me. Regards, Janko Original Message Subject:Bug: argument 'lib.loc' not passed on appropriately in 'library()'? Date: Thu, 18 Aug 2011 19:31:02

[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 t

[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

[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", representat

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

2011-08-24 Thread Janko Thyson
"[[:digit:]]", "", src) } ) showMethods("pluginExecute") #+ # Define the function/method that should be open for plugins foo <- function(plugin=pluginObjectCreate(), do.explicit.clss=FALSE, ...){ cat("Here: computations before plugin", sep=&

[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 http://stackoverflow.com/qu

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

2014-11-27 Thread Janko Thyson
ment that introduces a class not considered previously, the eligible > methods are further restricted to those matching the argument's class or > superclasses. If no further eligible classes exist, the iteration breaks > out and the default method, if any, is selected. > > > No me

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

2014-11-27 Thread Janko Thyson
l just giving foo formals for the arguments you want it > to catch gives you the end result you want, doesn't 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

[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 b

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

2014-12-15 Thread Janko Thyson
s Hadley have suggested that libxml2 is indeed causing the problem. So trying to link against another build would 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 wrote:

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" : > Thanks a lot for answering. Before I get into it, please note that &

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" : > Thanks a lot for answering. Before I get into it, please note that &

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

2014-12-15 Thread Janko Thyson
(use_gc) gc() NULL }) } mem_1 <- getCurrentMemoryStatus() memoryLeak(n = 5, free_doc = TRUE, rm_doc = TRUE) mem_2 <- 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, D

[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
ublic-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
;d be really great if someone could consider addressing this. Thank you very much, Janko Thyson __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] "Ambiguous" variation of default environment in `getClasses()` (standard function vs. formal S4 method)

2012-08-29 Thread Janko Thyson
ngs|. But that of course might as well be just me ;-) For those interested, I tried to illustrate the behavior in this SO post: http://stackoverflow.com/questions/12166645/ambiguous-variation-of-default-environment-in-getclasses-standard-function/12174390#12174390 Best regards, Janko Thyson

[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 "consol