Re: [Rd] Unexpected behavior of '[' in an apply instruction

2021-02-12 Thread robin hankin
Rui > x <- array(runif(60), dim = c(10, 2, 3)) > array(x[slice.index(x,1) %in% 1:5],c(5,dim(x)[-1])) (I don't see this on stackoverflow; should I post this there too?) Most of the magic package is devoted to handling arrays of arbitrary dimensions and this functionality might be good to include

Re: [Rd] dput()

2020-02-29 Thread robin hankin
t; > > > ? > > > > > > > > > > On 2020-02-29 2:42 a.m., Rui Barradas wrote: > >> Hello, > >> > >> FAQ 7.31 > >> > >> See also this StackOverflow post: > >> > >> https://stackoverflow.com/questions/9508518/w

[Rd] dput()

2020-02-28 Thread robin hankin
My interpretation of dput.Rd is that dput() gives an exact ASCII form of the internal representation of an R object. But: rhankin@cuttlefish:~ $ R --version R version 3.6.2 (2019-12-12) -- "Dark and Stormy Night" Copyright (C) 2019 The R Foundation for Statistical Computing Platform:

Re: [Rd] specials issue, a heads up

2020-02-24 Thread robin hankin
Terry, speaking as a package author I would say that the package is the primary unit of organisation of R functionality, and package considerations should trump R style considerations. Packages should be self-contained as far as possible. Having said that, many of my own packages use---shall we

Re: [Rd] Underscores in package names

2019-08-09 Thread robin hankin
Having written the 'lorentz' ,'Davies' and 'schwarzschild' packages, I'm interested in packages that are named for a particular person. There are (by my count) 34 packages on CRAN like this, with names that are the surname of a particular (real) person. Of these 34, only 7 are capitalized.

Re: [Rd] nrow(rbind(character(), character())) returns 2 (as documented but very unintuitive, IMHO)

2019-05-16 Thread robin hankin
Gabriel, you ask an insightful and instructive question. One of R's great strengths is that we have a forum where this kind of edge-case can be fruitfully discussed. My interest in this would be the names of the arguments; in the magic package I make heavy use of the dimnames of zero-extent

[Rd] openblas

2019-05-07 Thread robin hankin
Hello, macosx 10.13.6, Rdevel r76458 I'm trying to compile against openblas to reproduce an error on the CRAN check page (my package is clean under winbuilder and all but one of the checks). I've downloaded and installed openblas 0.3.7 but I am not 100% sure that it is being used by R. Using

Re: [Rd] pcre problems

2019-03-01 Thread robin hankin
Tomas Kalibera wrote: > > On 3/1/19 9:03 AM, robin hankin wrote: > > OK thanks Tomas, but I get > > > > > > OK~ sudo apt-get build-dep r-base > > Reading package lists... Done > > E: Unable to find a source package for r-base > > OK~ > > It seem

Re: [Rd] pcre problems

2019-03-01 Thread robin hankin
OK thanks Tomas, but I get OK~ sudo apt-get build-dep r-base Reading package lists... Done E: Unable to find a source package for r-base OK~ hankin.ro...@gmail.com On Fri, Mar 1, 2019 at 8:47 PM Tomas Kalibera wrote: > > On 3/1/19 7:10 AM, robin hankin wrote: > > thanks f

Re: [Rd] pcre problems

2019-02-28 Thread robin hankin
ine PACKAGE_VERSION "3.6.0" | #define PACKAGE_STRING "R 3.6.0" | #define PACKAGE_BUGREPOR hankin.ro...@gmail.com On Mon, Feb 25, 2019 at 9:39 PM Tomas Kalibera wrote: > > On 2/25/19 6:25 AM, robin hankin wrote: > > Hi there, ubuntu 18.04.2, trying to compi

[Rd] pcre problems

2019-02-24 Thread robin hankin
Hi there, ubuntu 18.04.2, trying to compile R-devel 3.6.0, svn 76155. I am having difficulty compiling R. I think I have pcre installed correctly: OK~/Downloads/R-devel pcretest -C PCRE version 8.41 2017-07-05 Compiled with 8-bit support UTF-8 support No Unicode properties support No

Re: [Rd] R (development) changes in arith, logic, relop with (0-extent) arrays

2016-09-08 Thread robin hankin
gt; Returning a logical of length 0 is more backwards compatible, but is it >>>> ever what the author actually intended? I have trouble thinking of a >>>> case >>>> where that less-than didn't carry an implicit assumption that y was >>>> non-NULL. I can say that

Re: [Rd] R (development) changes in arith, logic, relop with (0-extent) arrays

2016-09-07 Thread robin hankin
ollowing. These *all* give an error in current R-devel, > with the exception of 'm1 + NULL' which "only" gives a "bad > warning" : > > > > m1 <- matrix(1,1) > m2 <- matrix(1,2) > > m1 + NULL #numeric(0) in R <= 3.3.x --->

[Rd] gsl package on mavericks

2014-10-01 Thread robin hankin
users' reports. Can anyone advise? -- Robin Hankin Neutral theorist hankin.ro...@gmail.com [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] eigen(symmetric=TRUE) for complex matrices

2013-06-17 Thread robin hankin
1+0i eigen(B,T,T)$values# answers agree as expected if 'symmetric' means 'Hermitian' [1] 3 1 C - matrix(c(2,1i,1i,2),2,2)# 'C' is symmetric eigen(C,F,T)$values [1] 2-1i 2+1i eigen(C,T,T)$values # answers disagree because 'C' is not Hermitian [1] 3 1 -- Robin Hankin

[Rd] file.system() in packages

2013-01-21 Thread robin hankin
,package=emulator) [1] So I can't retrieve uncertainty.bib and this means that several other packages can't bibtex correctly. Can anyone advise? -- Robin Hankin Uncertainty Analyst hankin.ro...@gmail.com __ R-devel@r-project.org mailing list https

[Rd] columnames changes behaviour of formula

2012-05-24 Thread robin hankin
? -- Robin Hankin Uncertainty Analyst hankin.ro...@gmail.com [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] seq_along and rep_along

2012-01-08 Thread robin hankin
://had.co.nz/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Robin Hankin Uncertainty Analyst hankin.ro...@gmail.com __ R-devel@r-project.org mailing list https

Re: [Rd] seq_along and rep_along

2012-01-08 Thread robin hankin
to magic hypercubes. Does the List have any comments? rksh Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/ -- Robin Hankin Uncertainty Analyst hankin.ro...@gmail.com

[Rd] array extraction

2011-09-27 Thread robin hankin
subscribers advise? -- Robin Hankin Uncertainty Analyst hankin.ro...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] array extraction

2011-09-27 Thread robin hankin
(dim(a)[5:7] == dim(M2)) for consistency. Can any R-devel subscribers advise? -- Robin Hankin Uncertainty Analyst hankin.ro...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Robin Hankin

[Rd] repeatable segfault

2011-09-05 Thread robin hankin
, only.values, PACKAGE = base) 2: eigen(crossprod(matrix(1:2000, 50)) + (0 + (0+0i)), T, T) Possible actions: 1: abort (with core dump, if enabled) 2: normal R exit 3: exit R without saving workspace 4: exit R saving workspace Selection: 2 wt118:~% -- Robin Hankin Uncertainty Analyst

[Rd] NAMESPACE problems

2011-08-02 Thread robin hankin
for package ‘Brobdingnag’ * removing ‘/Users/rksh/packages/Brobdingnag.Rcheck/Brobdingnag’ wt118:~/packages% AFAICS, all the setGeneric() calls are pretty much like this: setGeneric(getX,function(x){standardGeneric(getX)}) Can anyone advise? thank you Robin -- Robin Hankin Uncertainty Analyst

Re: [Rd] Using GSL Routines

2011-04-14 Thread robin hankin
Statistics Computing Lab ISB        [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Robin Hankin Uncertainty Analyst hankin.ro...@gmail.com

[Rd] vignette typesetting issue

2011-03-01 Thread robin hankin
Mac, and I expect that it is down to some latex setting or style file. Does anyone recognize this problem? Can anyone advise? -- Robin Hankin Uncertainty Analyst hankin.ro...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch

[Rd] Sexpr problem

2011-02-25 Thread robin hankin
examine for Best Practice? thanks -- Robin Hankin Uncertainty Analyst hankin.ro...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Dependencies problem

2011-02-17 Thread robin hankin
in code2LazyLoadDB(package, lib.loc = lib.loc, keep.source = keep.source, : name space must not be loaded. ERROR: lazy loading failed for package ‘MM’ This error seems to be system-dependent. All of the depencies are packages which are on CRAN and AFAICS pass R CMD check. Can anyone advise? -- Robin

[Rd] S4 problems

2011-02-15 Thread robin hankin
'a' is an array? How can I make foo(a) behave as desired when 'a' is an object of class 'Oarray'? -- Robin Hankin Uncertainty Analyst hankin.ro...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] large vignette problem

2011-02-12 Thread robin hankin
into producing jpg files instead of PDF? Can anyone advise? thanks Robin -- Robin Hankin Uncertainty Analyst hankin.ro...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] large vignette problem

2011-02-12 Thread robin hankin
=xyClose, echo=FALSE= null - dev.off() @ \begin{figure}    \begin{center}        \includegraphics{xyPlot.png}    \end{center} \end{figure} Original message Date: Sun, 13 Feb 2011 10:54:37 +1300 From: r-devel-boun...@r-project.org (on behalf of robin hankin hankin.ro...@gmail.com

[Rd] NA printing

2011-01-25 Thread Robin Hankin
wishes Robin Hankin __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] S4 package warning

2010-11-10 Thread Robin Hankin
Hello everyone. R-2.12.0, suse linux 11.3. I am debugging a package that uses S4 methods and R CMD check gives the following warning: Warning in methods::findMethods(g, env) : non-generic function 'mdm' given to findMethods() See the information on DESCRIPTION files in the chapter

[Rd] S4 methods for rbind()

2010-10-26 Thread Robin Hankin
Hello. I am trying to write an S4 method for rbind(). I have a class of objects called 'mdm', and I want to be able to rbind() them to one another. I do not want the method for rbind() to coerce anything to an mdm object. I want rbind(x1,x2,x1,x2) to work as expected [ie rbind() should take any

Re: [Rd] S4 methods for rbind()

2010-10-26 Thread Robin Hankin
Morgan wrote: On 10/26/2010 03:53 AM, Robin Hankin wrote: Hello. I am trying to write an S4 method for rbind(). I have a class of objects called 'mdm', and I want to be able to rbind() them to one another. I do not want the method for rbind() to coerce anything to an mdm object. I want rbind

Re: [Rd] transpose of complex matrices in R

2010-07-30 Thread Robin Hankin
Hello Peter thanks for this. On 07/30/2010 11:01 AM, peter dalgaard wrote: What's wrong with t.complex- function(x) t.default(Conj(x)) M- matrix(rnorm(4)+1i*rnorm(4),2) M It's not going to help with the cross products though. As a general matter, in my book, transpose is

Re: [Rd] RFC: lchoose() vs lfactorial() etc

2009-12-15 Thread Robin Hankin
Hi Martin I think you're absolutely right about this; One thing I need again and again is a multinomial function, and usually define: lmultinomial function (x) { lfactorial(sum(x)) - sum(lfactorial(x)) } multinomial function (x) { exp(lmultinomial(x)) } It would be nice to have this

Re: [Rd] RFC: lchoose() vs lfactorial() etc

2009-12-15 Thread Robin Hankin
Martin Becker wrote: Robin Hankin wrote: ... Is this the place to discuss having complex arguments for gamma()? ... If this discussion starts I would second the wish for the functionality of gsl's lngamma_complex in base R. Do you mean gsl or GSL? ;-) [the GNU scientific library is 'GSL

[Rd] S4 and head() problems

2009-12-03 Thread Robin Hankin
Hi I am having difficulty defining an S4 method for head() and tail(). I can't quite provide minimal self-contained code because the problem appears to require the whole corpus of my package; and there also appears to be a difference between sourcing the lines directly, and having them

[Rd] S4 objects in the data directory

2009-11-12 Thread Robin Hankin
Hi [R-2.10.0; suse linux] I am having difficulty creating S4 objects in the data directory of a package. I want to create a bunch of simple S4 objects for use in the examples section of the Rd files. It says in R-exts that: R code should be “self-sufficient” and not make use of extra

[Rd] bundle deprecation

2009-06-12 Thread Robin Hankin
Hi I read that bundles are to be deprecated in 2.10. The BACCO bundle contains three packages (emulator, calibrator, approximator) which I am happy to unbundle. But the 'BACCO' moniker has some considerable cachet for me in terms of recognizability (eg with grant-giving bodies), as it has

[Rd] parsing Rd files and \deqn{}

2009-05-01 Thread Robin Hankin
Hi [R-2.9.0] I am having difficulty including a LaTeX formula in an Rd file. The example given in section 2.7 in 'Parsing Rd files' is: \deqn{ f(x) = \left\{ \begin{array}{ll} 0 x0 \\ 1 x\ge 0 \end{array} \right. }{non latex} For me, this gives: \deqn{ f(x) =

[Rd] vignettes in a bundle

2009-04-28 Thread Robin Hankin
Hi I have a bundle comprising three packages. Each package has a vignette. Currently each vignette has a separate .bib file. How do I arrange the bundle so that each vignette accesses a single, common, .bib file? thanks Robin -- Robin K. S. Hankin Uncertainty Analyst University of

Re: [Rd] vignettes in a bundle

2009-04-28 Thread Robin Hankin
, Something like: echo=FALSE= bib - system.file( bib, mybib.bib, package = yada ) cat( \\bibliography{,bib,}\n) @ It would also be nice to be able to use bibliography in Rd files ... Romain Robin Hankin wrote: Hi I have a bundle comprising three packages. Each package has a vignette. Currently each

Re: [Rd] vignettes in a bundle

2009-04-28 Thread Robin Hankin
don't understand why your first suggestion worked. How does TeX 'know' that this is not to be included verbatim? best wishes and thanks again Robin Robin Hankin wrote: Hello Romain this is brilliant; it never occurred to me to use cat() in this way. It works but I don't know why. With: echo

[Rd] vignette compilation times

2009-02-19 Thread Robin Hankin
Dear All I am preparing a number of vignettes that require a very long time to process with Sweave. The longest one takes 10 hours. I love the weaver package! Is a package that includes such a computationally intensive vignette acceptable on CRAN? Are there any guidelines here? --

Re: [Rd] vignette compilation times

2009-02-19 Thread Robin Hankin
thanks for this clarification Uwe Could I include the r_env_cache/ directory in the package and then assume that the CRAN checks use Sweave( , driver=weaver()) in which case the process takes about 10 seconds? rksh Uwe Ligges wrote: Robin Hankin wrote: Dear All I am preparing

Re: [Rd] \description in Rd files

2009-01-05 Thread Robin Hankin
Prof Brian Ripley wrote: I think you meant \describe On Mon, 5 Jan 2009, Robin Hankin wrote: Hi The aylmer package generates a warning (under R-2.9.0) for an Rd file which I think is OK. The package is clean under R-2.8.1. Did you actually look at the help under 2.8.1: it is I am

[Rd] \description in Rd files

2009-01-05 Thread Robin Hankin
Hi I make a point of going through my packages every so often and perusing the check results on CRAN. The aylmer package generates a warning (under R-2.9.0) for an Rd file which I think is OK. The package is clean under R-2.8.1. Specifically, the warning is: * checking Rd files ... OK

[Rd] array indexing

2008-12-05 Thread Robin Hankin
Hi. I have been pondering array indexing via matrices. a - array(1:27,rep(3,3)) index - matrix(c(1,1,1,1,2,3),2,3,byrow=TRUE) a[index] [1] 1 22 as expected and documented. But what was the thinking behind the decision to access the array by rows rather than columns? The 'index' matrix

[Rd] optional setValidity()

2008-05-07 Thread Robin Hankin
the check to be performed by default to stop anyone (me) from being too clever and defining a non-standard foo object that doesn't meet .checkfoo(). What is best practice here? Are there any examples I could copy? -- Robin Hankin Uncertainty Analyst and Neutral Theorist, National Oceanography

Re: [Rd] prod(0, 1:1000) ; 0 * Inf etc

2008-04-22 Thread Robin Hankin
. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Robin Hankin Uncertainty Analyst and Neutral Theorist, National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743

[Rd] [- plus drop-type extra argument

2008-04-02 Thread Robin Hankin
' to take its default value of FALSE, and 'NC' not be recalculated. How to do this? -- Robin Hankin Uncertainty Analyst and Neutral Theorist, National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R

Re: [Rd] tests Rin and Rout

2008-03-31 Thread Robin Hankin
1.082225 sample estimates: odds ratio 0 *just* shy of the magic 5% . . . -- Robin Hankin Uncertainty Analyst and Neutral Theorist, National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R

[Rd] S4 slot with NA default

2008-03-26 Thread Robin Hankin
sense: to me NaN means not a number and I want the sense to be not available. Any advice? -- Robin Hankin Uncertainty Analyst and Neutral Theorist, National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743

Re: [Rd] Re Bessel functions of complex argument

2008-03-10 Thread Robin Hankin
On 10 Mar 2008, at 11:03, Prof Brian Ripley wrote: On Mon, 10 Mar 2008, Martin Maechler wrote: {Diverted from an R-help thread} Robin == Robin Hankin [EMAIL PROTECTED] on Mon, 10 Mar 2008 08:49:06 + writes: Robin Hello Baptiste Bessel functions with complex Robin arguments

[Rd] a != a*1 != a+0 != +a

2008-02-04 Thread Robin Hankin
+ and -. If trim is TRUE, then a is one thing, but +a returns trim(a), which might be different. Also 1*a would be different from a and a+0 Does the List consider this to be Good Practice? Has anyone got comments? -- Robin Hankin Uncertainty Analyst and Neutral Theorist, National

[Rd] as.function()

2008-01-14 Thread Robin Hankin
a has been reassigned. [my real example is very much more complicated than this but I need this toy one too and I can't see how to modify as.function.polynomial() to do what I want] -- Robin Hankin Uncertainty Analyst and Neutral Theorist, National Oceanography Centre, Southampton

Re: [Rd] as.function()

2008-01-14 Thread Robin Hankin
more complicated than a vector. And I don't have an example that works on a complicated object to copy. Hope this help On 14/01/2008, Robin Hankin [EMAIL PROTECTED] wrote: Antonio thanks for your help here, but it doesn't answer my question. Perhaps if I outline my motivation it would

Re: [Rd] as.function()

2008-01-14 Thread Robin Hankin
On 14 Jan 2008, at 11:50, Duncan Murdoch wrote: Robin Hankin wrote: Hi [snip] a - crossprod(matrix(rnorm(12),ncol=3)) class(a) - foo f - as.function(a) # need help to write as.function.foo() x - diag(3) f(x) #should give tr(ax) a - 4 f(x) # should still

[Rd] S3 vs S4 for a simple package

2008-01-07 Thread Robin Hankin
, although I've not yet finalized the coding. S4 seems to be overkill for such a simple system. Can anyone give me some motivation for persisting with S4? Or indeed reassure me that S3 is a good design decision? -- Robin Hankin Uncertainty Analyst and Neutral Theorist, National Oceanography

Re: [Rd] Friday question: negative zero

2007-12-07 Thread Robin Hankin
-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Robin Hankin Uncertainty Analyst and Neutral Theorist, National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R-devel@r-project.org

[Rd] vignettes and papers

2007-11-02 Thread Robin Hankin
package? -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] R-2.6.0 package check problems

2007-10-09 Thread Robin Hankin
On 5 Oct 2007, at 15:47, Robin Hankin wrote: Hello One of my packages, untb_1.3-2, passes R CMD check under MacOSX (and apparently the systems used in the package check summary page on CRAN) but fails with the following message on R-2.6.0.tgz compiled last night on my (home) linux box. I

[Rd] R-2.6.0 package check problems

2007-10-05 Thread Robin Hankin
) -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] (PR#9811) sequence(c(2, 0, 3)) produces surprising results,

2007-07-27 Thread Robin Hankin
Ripley points out, sequence() itself does (which I think is undesirable). Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R-devel@r-project.org mailing list

Re: [Rd] sweep sanity checking?

2007-07-12 Thread Robin Hankin
of the following 'enhanced' sweep? (now posted at http://wiki.r-project.org/rwiki/doku.php?id=rdoc:base:sweep ) It always warns if dim(x)[MARGIN] is __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Robin Hankin

[Rd] signature() and setMethod() problems

2007-06-28 Thread Robin Hankin
- function(r,o){stop(RO not implemented)} setMethod(Arith, signature (o1=onion,o2=onion ), .onion.onion.arith) setMethod(Arith, signature(o=onion,r=ANY ), .onion.real.arith) setMethod(Arith, signature(r=ANY,o=onion ), .real.onion.arith) -- Robin Hankin Uncertainty Analyst National Oceanography Centre

[Rd] inherits() and virtual classes

2007-06-27 Thread Robin Hankin
, representation = VIRTUAL ) setClass(octonion, representation = representation(x=matrix), prototype = list(x=matrix(numeric(),0,8)), contains = onion ) jj - new(octonion,x=as.matrix(1:8)) inherits(jj,onion) -- Robin Hankin Uncertainty

Re: [Rd] two bessel function bugs for nu0

2007-06-19 Thread Robin Hankin
. -- -- Hiroyuki Kawakatsu Business School Dublin City University Dublin 9, Ireland Tel +353 (0)1 700 7496 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Robin Hankin

[Rd] no visible binding for global variable

2007-04-17 Thread Robin Hankin
) - jj.names colnames(o) - jj.names diag(o) - -apply(o,1,sum,na.rm=TRUE) return(o) } -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R-devel@r

[Rd] R CMD Rd2dvi

2007-03-19 Thread Robin Hankin
BACCO.dvi octopus:~/scratch% R CMD Rd2dvi ./BACCO Hmm ... looks like a package bundle [snip]. -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R-devel@r-project.org

[Rd] S3 best practice

2007-03-02 Thread Robin Hankin
on the simple plot } } I think that it would be better to somehow precalculate the uncertainty stuff and plot it separately. How best to do this in the context of an S3 method for plot()? What is Best Practice here? -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton

Re: [Rd] arraytake for extracting subarrays from multidimensional arrays

2006-10-19 Thread Robin Hankin
[[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743

Re: [Rd] arraytake for extracting subarrays from multidimensional arrays

2006-10-19 Thread Robin Hankin
HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Robin

[Rd] typesetting a matrix in an Rd file

2006-09-21 Thread Robin Hankin
and ampersands are being escaped somehow, and TeX isn't interpreting them as desired. How do I write an Rd file so that the output of R CMD Rd2dvi includes a nicely typeset matrix? -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel

[Rd] setMethod() woes

2006-09-15 Thread Robin Hankin
) setMethod(Arith,signature(e2 = glub), .ArithGlub) -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R-devel@r-project.org mailing list https://stat.ethz.ch

[Rd] package.skeleton() in R-2.4.1

2006-09-12 Thread Robin Hankin
(0), signature = x, default = Am I doing something wrong? -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R-devel@r-project.org mailing list https

Re: [Rd] setMethod(c) [was: setMethod(Summary)]

2006-09-07 Thread Robin Hankin
,y)c(x, [EMAIL PROTECTED])) setMethod(cPair, c(ANY, ANY), function(x,y)c(x,y)) Robin Hankin wrote: [snip] -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R

Re: [Rd] setMethod(c) [was: setMethod(Summary)]

2006-09-06 Thread Robin Hankin
(...)) } and then write methods for cPair(). John Robin Hankin wrote: Hello everybody. I didn't see Franklin's first message; sorry. Bearing in mind Professor Ripley's comments on the efficiency of S4 vs S3, I'm beginning to think I should just stick with S3 methods for my brob objects

Re: [Rd] setMethod(Summary)

2006-09-05 Thread Robin Hankin
have mooted the above. (also, i thought i sent this last week, but i may have neglected to make it plain text, so maybe you didn't get it) franklin parlamis On Sep 4, 2006, at 3:47 AM, Robin Hankin wrote: Hi everyone and thanks for being patient. I've used !.foo() et seq pro tem. Next

[Rd] setMethod(c) [was: setMethod(Summary)]

2006-09-05 Thread Robin Hankin
x - new(brob,x=pi,positive=T) c(x,x) but c(1,x) isn't dispatched to my function. How to deal cleanly with this case? Perhaps if any argument to c() is a brob object, I would like to coerce them all to brobs. Is this possible? -- Robin Hankin Uncertainty Analyst National

Re: [Rd] setMethod(Logic, ...)

2006-09-04 Thread Robin Hankin
), .logicBrob) but this does not work as desired (setMethod() gives an error). I want, for example, !new(brob, x=1:10,positive=rep(T,10)) to call .logicBrob() and report an error. -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK

[Rd] setMethod(Summary)

2006-09-04 Thread Robin Hankin
() ] What is the correct way to make sum(x) call .Brob.max() if x is a brob object? Or is is it better to define a sum.brob() function and use that? -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743

[Rd] setMethod(Logic, ...)

2006-09-01 Thread Robin Hankin
Error in setMethod(Logic, signature(e1 = brob), function(e1, e2) { : no existing definition for function 'Logic' ?Math seems to imply that there is no Logic group. So, what is the correct way to specify that logical operations are not allowed for brob objects? -- Robin Hankin

[Rd] vector S4 classes

2006-08-29 Thread Robin Hankin
? Or indeed is making thing a vector class as sensible idea here? -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R-devel@r-project.org mailing list https

Re: [Rd] vector S4 classes

2006-08-29 Thread Robin Hankin
-of-a-four-row-matrix method? best wishes Robin On 29 Aug 2006, at 11:11, Martin Maechler wrote: Robin == Robin Hankin [EMAIL PROTECTED] on Tue, 29 Aug 2006 10:42:21 +0100 writes: Robin In the Green Book, section 7.5 discusses new vector classes and uses Robin quaternions

[Rd] S4 methods for +

2006-08-25 Thread Robin Hankin
is no problem...but what is the S4 equivalent to the S3 technique of writing an Ops.track() function that tells R what + means? -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743

[Rd] data() statement in functions

2006-08-02 Thread Robin Hankin
is best practice in such situations? -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

[Rd] largest acceptable lookup table in a package

2006-07-26 Thread Robin Hankin
consisting of logs of Stirling numbers calculated by Maple. As discussed on the List a few days ago (thanks again David!) Stirling numbers are computationally challenging; one needs exact integer arithmetic for very large integers for their calculation (a 100x100 table requires ~10^157) ] -- Robin

[Rd] pari/gp interface

2006-07-25 Thread Robin Hankin
is a widely used computer algebra system designed for fast computations in number theory. It is freely available at http://pari.math.u-bordeaux.fr/ ] -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743

[Rd] invalid alignment error in R-2.4.0

2006-07-11 Thread Robin Hankin
system powerpc, darwin8.7.0 status Under development (unstable) major 2 minor 4.0 year 2006 month 07 day09 svn rev38523 language R version.string R version 2.4.0 Under development (unstable) (2006-07-09 r38523) -- Robin

Re: [Rd] invalid alignment error in R-2.4.0

2006-07-11 Thread Robin Hankin
0x2cec in main (ac=42293336, av=0x1) at Rmain.c:33 (gdb) -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R-devel@r-project.org mailing list https

Re: [Rd] invalid alignment error in R-2.4.0

2006-07-11 Thread Robin Hankin
suspect the compiler. -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] [R] combining tables

2006-06-20 Thread Robin Hankin
want to leave all the others unchanged. What is Best Practice for redefining just one binary operator? On 6/19/06, Robin Hankin [EMAIL PROTECTED] wrote: Hi Suppose I have two tables of counts of different animals and I wish to pool them so the total of the sum is the sum of the total

[Rd] R CMD check problem

2006-05-22 Thread Robin Hankin
: Unknown error: 0 Robin-Hankins-Computer:~/scratch% anyone got any insight into this? -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R-devel@r-project.org

[Rd] unsigned long long integers

2006-04-24 Thread Robin Hankin
with signed long long integers] -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] R-latest.tar.gz make error

2006-04-13 Thread Robin Hankin
238-250:~/scratch/R-beta% -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] eigen()

2006-01-10 Thread Robin Hankin
) (2006-01-04 r36984) Note the strange magnitude of the output. [ I need this to work because one of my packages fails under R-devel ] -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743

Re: [Rd] x[1,], x[1,,], x[1,,,], ...

2005-11-29 Thread Robin Hankin
this in R that I have overlooked? /Henrik __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel

Re: [Rd] x[1,], x[1,,], x[1,,,], ...

2005-11-29 Thread Robin Hankin
(), arev() enjoy! ] On 29 Nov 2005, at 15:17, Gabor Grothendieck wrote: I couldn't find it: library(magic) apltake Error: object apltake not found On 11/29/05, Robin Hankin [EMAIL PROTECTED] wrote: Hi everyone apltake(x,1) [where apltake() is part of library(magic)] does this. best

  1   2   >