[Rd] class of integers

2003-03-12 Thread Torsten Hothorn
Hi, I'm a little bit confused about the class of integers (with yesterdays r-devel): R> a <- 1:10 R> class(a) [1] "integer" R> inherits(a, "integer") [1] FALSE R> data.class(a) [1] "numeric" R> is.numeric(a) [1] TRUE R> inherits(a, "numeric") [1] FALSE data.class is consistent with R-1.6.2, ok

[Rd] cex.axis in boxplot (PR#2628)

2003-03-12 Thread Torsten . Hothorn
Hi, the graphical parameter "cex.axis" does not have any affect for "boxplot": data(iris) boxplot(iris[,1:4], ylab="y", cex.lab=2, cex.axis=2) The patch is simply adding "cex.axis" to the search for axis relevant parameters in "bxp": ax.pars <- pars[names(pars) %in% c("xaxt", "yaxt", "las", "

[Rd] brackets in prompt.data.frame (PR#2676)

2003-03-24 Thread Torsten . Hothorn
prompt.data.frame produces Rd-code with unbalanced brackets: data(iris) prompt(iris, filename=NA) gives ... $format [1] "\\format{" [2] " A data frame with 150 observations on the following 5 variables." [3] " \\describe{" [4] "\\item{Sepal.Length}{a numeric vector}" [5] "\\item

[Rd] typo in R-exts

2003-06-16 Thread Torsten Hothorn
Hi, the definition of `fsign' in R-exts currently is double fsign (double x, double y) Function Performs "transfer of sign" and is defined as |x| * sign(x) but should read double fsign (double x, double y) Function Performs "transfer of sign" and is defined as |x| * sign(y)

Re: [Rd] wilcox.test, CI (PR#3666)

2003-08-14 Thread Torsten Hothorn
> Full_Name: David Wooff > Version: 1.7.0 > OS: i686-pc-linux-gnu > Submission from: (NULL) (129.234.4.10) > > > wilcox.test exits with error message when confidence interval required, under > some situations. I suspect this occurs when the data contain a zero and for some > data lengths only: > >

[Rd] tracing nonstandardGenericFunction

2003-08-14 Thread Torsten Hothorn
Hi, how can one trace a nonstandardGenericFunction, especially "initialize"? An example: setClass("dummy", representation(a = "numeric")) setMethod("initialize", "dummy", function(.Object, a = 2) { ### I want to trace this function [EMAIL PROTECTED] <- a

[Rd] `var' broken in 1.8.0 alpha (2003-09-15)

2003-09-16 Thread Torsten Hothorn
Hi, in last nights alpha version, `var' is broken: R> var(rnorm(100)) Error in var(rnorm(100)) : 3 arguments passed to "cov" which requires 4. which I suspect is due to recent changes to `cov'. The same is true for R> cov(rnorm(100), rnorm(100)) Error in cov(rnorm(100), rnorm(100)) : 3 argumen

Re: [Rd] `var' broken in 1.8.0 alpha (2003-09-15)

2003-09-16 Thread Torsten Hothorn
> Yes these two are related, but the e-mail subject is wrong: > It's *your* fault because you must have unpacked the new version > on top of an older one. > The official alpha version (Snapshots from here, or rsync) do > not have your problem: > Before a few days ago, there were files > src/li

Re: [Rd] dwilcox (PR#4212)

2003-09-18 Thread Torsten Hothorn
> Full_Name: Mark J. Lamias > Version: 1.7.0 > OS: Windows 2000 Pro > Submission from: (NULL) (65.222.84.72) > > > I am running the qwilcox procedure and it is producing incorrect results. For > example, dwilcox(.025, 3, 5) not really: R> dwilcox(.025, 3, 5) [1] 0 which is natural since the st

Re: [Rd] function 'density' in r-devel

2003-09-18 Thread Torsten Hothorn
> Hi, > > Just to report. > > I yesterday's r-devel I get: > > d <- density(rnorm(100)) > Error in var(x, na.rm = na.rm) : 3 arguments passed to "cov" which requires 4. > you are the third one discovering this :-) cov.R and var.R were removed from the base/R directory but we all failed to update

Re: [Rd] Using log() on an openMosix cluster

2003-11-24 Thread Torsten Hothorn
On Fri, 21 Nov 2003, Roger D. Peng wrote: > Hi all, I was hoping to get some advice about a problem that I realize > will be difficult to reproduce for some people. I'm running R 1.7.1 on > an openMosix (Linux) cluster and have been experiencing some odd > slow-downs. If anyone has experience wi

[Rd] plot.dendrogram and expressions

2004-03-12 Thread Torsten Hothorn
Hi, currently the "label" and "edgetext" attributes of a dendrogram are coerced to character before they are added to a plot with `text'. Is there a specific reason to do so (expect for the determination of the size of the character string to be plotted)? Otherwise one could plot the attributes d

[Rd] Global assignment with S4 objects in R 1.9.0 beta

2004-03-29 Thread Torsten Hothorn
Hi, some change during the last 10 days breaks code where slots of an object are changed globally: setClass("mylist", contains = "list") setClass("dummy", representation = representation( a = "mylist")) foo1 = function(i, x) { [EMAIL PROTECTED] <<- x ### change a slot } fo

[Rd] Memory Protection & calling C-fun from C

2004-04-01 Thread Torsten Hothorn
Good morning! The descriptions of memory protection all assume that one is calling a C-function directly from R. I'm not sure if my understanding of calling a C-function from another C-function is correct: Suppose there are two functions SEXP bar(SEXP y) { SEXP b; PROTECT(b = allocVector(..

[Rd] `extends()'at C-level?

2004-04-02 Thread Torsten Hothorn
One can check easily if an object is of class "foo" via strcmp(CHAR(asChar(GET_CLASS(obj))), "foo") and I wonder if there is high-level functionality to check if `obj' extends a class? Best, Torsten __ [EMAIL PROTECTED] mailing list https://www.

[Rd] Segfault: .Call and classes with logical slots

2004-04-26 Thread Torsten Hothorn
t, Torsten R> version _ platform i686-pc-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status major1 minor9.0 year 2004 month 04 day 12 language R R> ___ | | | Dr. rer. nat. Torsten Ho

Re: [Rd] R and C++ code

2004-05-18 Thread Torsten Hothorn
> Hello, > I want to use a C++ library under R, but I have problems. > I have readen the manual: "Writing R Extensions" and the setion " Interfacing C++ > code". > I have created : > //X.cpp > #include "X.h" > #include > > X::X() > { > std::cout << "constructor X" << std::endl; > } > > X::~X(

Re: [Rd] Methods package is now attached by default

2003-01-20 Thread Torsten Hothorn
On Sun, 19 Jan 2003, Kurt Hornik wrote: > > Prof Brian D Ripley writes: > > > On Fri, 17 Jan 2003, John Chambers wrote: > >> There are two main known differences from having methods attached: > >> > >> - the definition of class() changes, in particular no object ever has a > >> NULL class. If

Re: [Rd] package mvtnorm: sigma parameter in pmvnorm() (PR#2478)

2003-01-21 Thread Torsten Hothorn
On Tue, 21 Jan 2003 [EMAIL PROTECTED] wrote: > Full_Name: Jerome Asselin > Version: 1.6.2 > OS: RedHat Linux 7.2 > Submission from: (NULL) (142.103.173.179) > > > > pmvnorm() may fail for a univariate distribution when > its parameter "sigma" is defined as a matrix. It will > fail if sigma < 1. >

Re: [Rd] R2.0.0 bug in function vcov in library survival (PR#7266)

2004-10-06 Thread Torsten Hothorn
> > Have just compiled and installed R-2.0.0.tar.gz running SuSE9.0. > > The function vcov do not accept "coxph" object as input any longer. > > The same R-program running R1.9.1 do work. R-program attached below. > > Exporting the coxph object from R2.0.0 to R1.9.1 I get vcov ouput in R1.9.1. > Ex

[Rd] fitting problems in coxph.fit

2004-12-16 Thread Torsten Hothorn
Dear Thomas & Dear List, the fitting function `coxph.fit' called by `coxph' may fail to estimate the regression coefficients when some values of the design matrix are very large. For example library(survival) ### load example data load(url("http://www.imbe.med.uni-erlangen.de/~hothorn/coxph_fit

Re: [Rd] S3/S4 classes performance comparison

2005-01-14 Thread Torsten Hothorn
On Fri, 14 Jan 2005, Eric Lecoutre wrote: > > Hi R-devel, > > If you did read my survey on Rhelp about reporting, you may have seen that > I am implementing a way to handle outputs for R (mainly target output > destinations: xHTML and TeX). > In fact: I does have something that works for basic obj

[Rd] typo in ?NotYetImplemented

2005-01-25 Thread Torsten Hothorn
The `examples' section says plot.mlm # to see how the "NotYetImplemented" # reference is made automagically ^ Best, Torsten __ R-devel@stat.math.ethz.ch mailing list h

[Rd] R News: Call for Papers

2005-02-14 Thread Torsten Hothorn
send submissions to Uwe Ligges <[EMAIL PROTECTED]>. The deadline for submissions is April, 10th, 2005 Keep the contributions rolling in! The Editorial Board, Doug Bates, Paul Murrell and Torsten Hothorn __ R-devel@stat.math.ethz

[Rd] promptMethods(foo) & \alias{foo}

2005-02-16 Thread Torsten Hothorn
Dear all, `promptMethods(foo)' currently does not produce and Rd-skeleton including an `\alias{foo}' entry, which is required (at least R CMD check keeps crying until the alias is added). Maybe one could simply add this line. Thanks, Torsten __ R-dev

Re: [Rd] Use of htest class for different tests

2005-03-14 Thread Torsten Hothorn
On Sun, 13 Mar 2005, Gorjanc Gregor wrote: > Hello! > > First of all I must appologize if this has been raised previously, but > search provided by Robert King at the University of Newcastle seems to > be down these days. Additionally let me know if such a question should > be sent to R-help. > >

[Rd] Re: simtest with lm object: depends on order in formula

2005-04-01 Thread Torsten Hothorn
On Fri, 1 Apr 2005, Christoph Buser wrote: > Hi > > I used the simtest function from the package multcomp. When > using simtest with an lm object, it seems to depend on the order > of the variables in the formula. See the code for an example: > > library(multcomp) > set.seed(1) > # response > y <-

Re: [Rd] Suggestion: help()

2005-06-08 Thread Torsten Hothorn
On Tue, 7 Jun 2005, Duncan Murdoch wrote: [...] > My proposal (modified following the suggestions I've heard so far) is as > follows: > > - to check that a couple of help topic aliases exist (.package > and ) > - to recommend that .package contain general information about > the package, and