Displaying 20 results from an estimated 4000 matches similar to: "new package bundle: onion"
2005 Jul 29
1
octonions
Hi
I thought it would be fun to develop R functionality for
the octonions (there is already some work on quaternions).
The octonions are an 8 dimensional algebra over the reals, so an
octonion
may nicely be represented as a real vector of length 8. Applications
are many and varied, mostly quantum mechanics.
I would like to develop some R functionality in this area.
My first problem is how
2005 Sep 09
2
two almost identical packages: best practice
Hi
I have written a whole bunch of methods for objects of class "octonion".
[
an octonion is a single column of an eight-row matrix. Octonions have
their own multiplication rules and are a generalization of quaternions,
which are columns of a four-row matrix.
]
So far I've done about a dozen generic functions such as seq.octonion(),
rep.octonion(), [<-.octonion(), and so on
2007 Jun 27
1
inherits() and virtual classes
Hi
How do I test for an object having a particular virtual class?
In the following, "onion" is a virtual class, and "octonion" is
a non-virtual class contained in onion. The last call
to inherits() gives FALSE [R-2.5.0], when inherits.Rd led
me to expect TRUE.
setClass("onion",
representation = "VIRTUAL"
)
2006 Sep 01
1
as.environment(NULL)
Hi
In NEWS, it says
R CMD check now tests that the package can be loaded, and that
the package and namespace (if there is one) can each be loaded
in startup code (before the standard packages are loaded).
For package "onion", I think I have followed all of
sections 1.6.1 - 1.6.6 of R-exts, and it passes R CMD check for
R-2.3.1.
However, using R version 2.4.0 Under
2006 Apr 06
1
R CMD check for packages in a bundle
Hi
[MacOsX 10.4.6; R-2.2.1]
I have a bundle that comprises three packages. I want to run R CMD
check on
each one individually, as it takes a long time to run on all three.
I am
having problems.
The bundle as a whole passes R CMD check, but fails when I cd to the
bundle
directory and run R CMD check on a package directory.
The whole bundle passes:
octopus:~/scratch% R CMD check
2005 Oct 24
0
new package bundle on CRAN: BACCO
Dear List
please find on CRAN a new R bundle, BACCO, for Bayesian analysis of
random functions, comprising two packages: emulator and calibrator.
Package calibrator implements:
?Bayesian calibration of computer models?, M. C. Kennedy and A.
O'Hagan 2001. Journal of the Royal Statistical Society B, 63(3)
pp425-464
and package emulator implements:
J. Oakley 2004. ?Estimating percentiles
2004 Nov 18
0
Fwd: Re: 3d scatter plot with drop line
Hi
try this:
p3dpairs <- function(x,x1,
xlim=NULL,ylim=NULL,zlim=NULL,col=par("col"), pch=par("pch"),
cex=par("cex"), ...){
if(is.matrix(x)){
z <- x[,3]
y <- x[,2]
x <- x[,1]
}
if(is.matrix(x1)){
z1 <- x1[,3]
y1 <- x1[,2]
x1 <- x1[,1]
}
if(missing(zlim)) {
z.grid <-
2004 Jul 05
1
"make" error for R-1.9.1
Hello everybody.
I am trying to upgrade from R-1.9.0 to R-1.9.1 on a RedHat linux
2.4.18 system. I get
the following error after "tar -xvzf R-1.9.1.tgz ; cd ./R-1.9.1/ ; ./configure"
and "make" :
[make works for 10 minutes ... snip ...]
varExp text html latex
varFixed text html latex
varFunc
2005 Jul 15
0
new package: elliptic
Hi
I recently uploaded package "elliptic" to CRAN. From the DESCRIPTION
file, it is:
A suite of elliptic and related functions including
Weierstrass and Jacobi forms. Also includes various
tools for manipulating and visualizing complex
functions.
enjoy
rksh
--
Robin Hankin
Uncertainty Analyst
National Oceanography Centre,
2005 Jul 15
0
new package: elliptic
Hi
I recently uploaded package "elliptic" to CRAN. From the DESCRIPTION
file, it is:
A suite of elliptic and related functions including
Weierstrass and Jacobi forms. Also includes various
tools for manipulating and visualizing complex
functions.
enjoy
rksh
--
Robin Hankin
Uncertainty Analyst
National Oceanography Centre,
2006 Aug 29
2
vector S4 classes
In the Green Book, section 7.5 discusses new vector classes and uses
quaternions
as an example of a vector class that needs more than one number per
element.
I would like to define a new class that has a numeric vector and a
logical
vector of the same length that specifies whether the measurement was
accurate.
The following code does not behave as desired:
>
2006 May 22
1
R CMD check problem
Hi
I have a package that I'm testing.
It seems to install fine and it works, as far as I can tell.
For example, I can install the package, and use it,
and source the test suite with no errors.
My problem is with R CMD check.
It passes on R-2.2-0:
Robin-Hankins-Computer:~/scratch% R CMD check ./partitions_1.1-0.tar.gz
* checking for working latex ... OK
[snip]
make[1]: Leaving directory
2006 Sep 12
1
package.skeleton() in R-2.4.1
Hi
R version 2.4.0 alpha (2006-09-06 r39158)
MacOSX 10.4.7
There was a thread some time ago as to whether the structure created by
package.skeleton() would pass R CMD check.
I have an example where package.skeleton() gives an R file that gives an
error when sourced.
If I type
setClass("brob",
representation = representation
2006 Sep 21
1
printing of complex numbers in R-alpha
Hello everyone
I am finding complex numbers to be printed oddly in R-alpha.
> 1e100+1e100i
[1] 1e+100+1e+100i
> 1e100 + 1e44i
[1] 1e+100+100000000000000008821361405306422640701865984i
> dput(1e100+1e44i)
1e+100+100000000000000008821361405306422640701865984i
>
[same thing at home on a linux box]
The first line is what I would expect, the second and third lines
aren't:
I
2007 Dec 18
0
branch cuts of log() and sqrt()
Dear developers
Neither Math.Rd nor Log.Rd mention the branch cuts
that appear for complex arguments. I think it's important
to include such information.
Please find following two context diffs for Log.Rd and Math.Rd.
[The pedants amongst us will observe that
both sqrt() and log() have a branch point at complex
infinity, which is not mentioned in the patch. Comments
anyone?]
rksh
2004 Sep 13
1
Rd files with "%" (was: permuting dimensions)
Professor Ripley
thanks for this. Very much appreciated.
The original subject line reflected my late-night conviction
that the answer might involve passing a strange list to do.call().
Anyway, package magic is broken (only in R-devel, I might add) because I have
a function called "%eq%".
R-2.0.0 CMD check is stopping (I think) because it interprets the
"%" as a
2005 Sep 01
1
generic function S3 consistency warning advice
Hi
section 6.1 of R-exts suggests that a package can take over a
function in the base
package and make it generic.
I want to do this with Re() and have the following lines in my R code:
"Re" <- function(x){UseMethod("Re" )}
"Re.default" <- get("Re" ,pos=NULL,mode="function")
"Re.octonion" <- function(x){give.comp(x,1)}
2005 Aug 31
3
generic function argument list problem
Hi
it says in R-exts that
A method must have all the arguments of the generic,
including ... if the generic does.
A method must have arguments in exactly the same order as the
generic.
A method should use the same defaults as the generic.
So, how come the arguments for rep() are (x, times, ...) and the
arguments
for rep.default() are (x, times, length.out, each, ...) ?
2006 Sep 13
3
functions and strings
Hi
If
string <- "xyz"
f <- function(x){1 + sin(cos(x)) + exp(x^2)}
How do I manipulate "string" and f() to give the string
"1 + sin(cos(xyz)) + exp(xyz^2)"
?
--
Robin Hankin
Uncertainty Analyst
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
tel 023-8059-7743
2005 Jan 07
1
Visualizing complex analytic functions using domain coloring
Hi
has anyone coded up domain colouring for visualizing complex analytic
functions
(such as elliptic functions)?
[
the idea is to depict a complex function f(z) using a filled.contour()
variant
in which the hue is given by Arg(f(z)), and the saturation by Mod(f(z)).
]
--
Robin Hankin
Uncertainty Analyst
Southampton Oceanography Centre
European Way, Southampton SO14 3ZH, UK
tel