Displaying 20 results from an estimated 400 matches similar to: "Time to add is.formula() to 'stats'?"
2008 Aug 16
0
relist.Rd patch
There are a few typos in the documentation for relist(). I've also
made a few other changes to the file which I believe are
improvements. I've attached a patch against the version under the
'trunk' branch on the svn server checked out today. It was produced by
diff -u /usr/local/src/R/R-svn-trunk/src/library/utils/man/relist.Rd ~/relist-new.Rd
I'd also suggest identical()
2011 Apr 14
1
Possible bug in 'relist()' and/or 'as.relistable()'
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.pairlist(list(a=1, b=2, c=list(c.1=1, c.2=2))))
a <- unlist(a)
2008 Aug 17
2
Optim stripping attributes from relistable objects
Dear all,
The following code is inspired by the help file for the relist()
function (see?relist), which explicitly details how you can use a
relistable object in conjunction with optim to pass and reconstruct
complex parameter structures/groupings. The idea is that the optim()
function can only work with vectors, but in many cases you would like
to use a complex structure inside the objective
2012 Jun 04
1
X11 font error on headless server running Xvfb
I am trying to run an R script to create a .png file containing a tree map on a headless Linux server using Xvfb. When I try to run tmPlot, I get the following errors and warnings:
Error in grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 1 at size 9 could not be loaded
Calls: tmPlot ... <Anonymous> ->
2007 Feb 05
1
Build error with last R-devel tarball
Hi,
On Windows, with last R-devel tarball (r40647) from
ftp://ftp.stat.math.ethz.ch/Software/R/R-devel_2007-02-04.tar.gz
I get the following build error:
E:\biocbld\bbs-2.0-bioc\R\src\gnuwin32> make
...
...
---------- Making package utils ------------
adding build stamp to DESCRIPTION
installing NAMESPACE file and metadata
installing R files
Error in namespaceExport(ns, exports) :
2008 Feb 05
2
Error in grid.text after tcltk package loaded
Hello -
I am noticing some strange errors when using the grid package, but
(apparently) only after loading the tcltk package. The interaction here
does not make sense to me, and I'm wondering if anyone else can
reproduce this, or if it is specific to my setup. Here is my sessionInfo:
sessionInfo()
R version 2.6.2 RC (2008-02-04 r44332)
i686-pc-linux-gnu
locale:
2012 Jul 25
1
[LLVMdev] [RFC] YAML I/O
I've been working on reading and writing yaml encoded documents for the lld project. Michael Spencer added the YAMLParser.h functionality to llvm/Support to help in parsing yaml documents. That parser greatly helps at the syntax level, but you still need to hand write a lot of semantic checking and then convert the various node types in to something usable.
I've developed a layer on
2005 Apr 18
2
citation() chops "Roeland " (PR#7797)
Full_Name: Jari Oksanen
Version: 2.0.1, 2.1.0 beta (2005-04-17)
OS: Linux
Submission from: (NULL) (130.231.102.145)
If name ends with "and", such as "Roeland Lastname", citation() will chop "and"
as a separate word giving "Roel and Lastname". This is the case in the upcoming
release of vegan (1.6-8) just submitted to CRAN. Basically, this seems to happen
2012 Jun 05
0
ggplot2, grid graphics, x11(), windows(), and device fonts
I am trying to use ggplot() to produce a graph and am getting warnings that
I don't understand. This is happening from within RStudio, but also happens
if I start Windows R GUI. Can anyone help me understand the warning and
how to make sure the right fonts are designated? The relevant code fragment
is:
x11(width=7, height = 7)
library(ggplot2)
# Now some Distance ~ Time plots
p2 <-
2024 Jul 10
1
Implementation for selecting lag of a lag window spectral estimator using generalized cross validation (using deviance)
Dear All,
I am looking for:
A software to select the lag length for a lag window spectral estimator.
Also, I have a small query in the reprex given below.
Background for the above, from the book by Percival and Walden:
1. We are given X_1,...,X_n which is one realization of a stochastic process.
2. We may compute the periodogram using FFT, for example by the
function spectrum in R.
3. The
2008 May 01
1
Locale problem with umlauts in factor levels in 2.7.0 (patched) from grid or lattice
With 2.7.0 patched (not tested with 2.0.0), I get an error message in a
program that ran correctly in R 2.6.2 when the grouping factor of a
stripplot contains an Umlaut:
I am aware that there are a few locale-changes in R 2.7.0, but I could not
easily
locate who's at fault
Dieter
library(lattice)
dt = data.frame(x=rnorm(100),y=1:100,levs= as.factor(c("Gru","Gr?")))
2008 Jul 15
1
methods/namespaces/possible bug
Using
> methods("plot")
[1] plot.Date* plot.HoltWinters* plot.POSIXct*
[4] plot.POSIXlt* plot.TukeyHSD plot.acf*
[7] plot.data.frame* plot.decomposed.ts* plot.default
[10] plot.dendrogram* plot.density plot.ecdf
[13] plot.factor* plot.formula* plot.hclust*
[16] plot.histogram* plot.isoreg* plot.lm
[19] plot.medpolish*
2009 Jan 19
0
optim() example in relist() help page
I think the optim() example in the Details section of relist()'s help
page is not totally correct. In particular, in the current form it is
not taken into account that vcov should be a symmetric matrix and only
the parameters in the lower (or upper) triangular part should be optimized.
A possible fix is:
ipar <- list(mean = c(0, 1), vcov = c(1, 1, 0))
initial.param <-
2019 Feb 14
0
Proposed speedup of spec.pgram from spectrum.R
Hello,
I propose two small changes to spec.pgram to get modest speedup when
dealing with input (x) having multiple columns. With plot = FALSE, I
commonly see ~10-20% speedup, for a two column input matrix and the speedup
increases for more columns with a maximum close to 45%. In the function as
it currently exists, only the upper right triangle of pgram is necessary
and pgram is not returned by
2014 Mar 05
1
[PATCH] Code coverage support proof of concept
Hello,
I submit a patch for review that implements code coverage tracing in
the R interpreter.
It records the lines that are actually executed and their associated
frequency for which srcref information is available.
I perfectly understands that this patch will not make its way inside R
as it is, that they are many concerns of stability, compatibility,
maintenance and so on.
I would like to have
2007 Jun 07
1
Search results
Hi, I am new to Ruby, I am a Java expert.
I don''t know how to handle the results of a search... I have read a lot,
but nobody seems to give examples of that.
Do I get an ArrayList from a Table?
Do I get fields?
How can I identify them?
Do I have to parse them to a Class like: Person user =
Person(personlist.get(i));?
Please, help me...
--
Posted via http://www.ruby-forum.com/.
2009 Apr 15
1
savePlot error when type = "eps" or "wmf"
Hello,
When I use savePlot(filename="xy",type="eps") or
savePlot(filename="xy",type="wmf") , I get the following error:
Error in grid.Call("L_textBounds", as.graphicsAnnot(x$label), x$x, x$y, :
Polygon edge not found (zero-width or zero-height?)
This doesn't occur when I change the type to "jpeg" or "bmp". Can
2016 Jul 20
2
Fuente (Tahoma)
Hola.
Estoy logrando sacar un gráfico para una presentación en ggloot2 y me está
quedando bastante bonito! Pero, tengo es problema con las fuentes:
Warning messages:
?>?
1: In grid.Call(L_textBounds, as.graphicsAnnot(x$label), ... :
?>?
font family not found in Windows font database
?etc.?
?que proviene de
> theme_minimal(base_size = 14, base_family = "Tahoma") +
?La verdad
2017 Jun 21
1
encoding/locale problem with ssh -X
Hi all,
I am struggling with remote R sessions and a (I suspect) locale related
encoding problem: Using the X11 device (X11forwarding enabled),
whenever I try to plot something containing umlauts using ggplot2, I am
seeing sth like
,----
| Error in grid.Call(L_stringMetric, as.graphicsAnnot(x$label)) :
| invalid use of -61 < 0 in 'X11_MetricInfo'
`----
Using base graphics is fine
2007 Jul 19
1
substitute and expression (Peter Dalgaard)
In this connection, note the following
> a4 <- 4
> plotThis <- bquote(alpha==.(a), list(a=a4))
> do.call(plot, list(1:10, main=do.call(expression, c(plotThis))))
> do.call(plot, list(1:10, main=do.call(expression, plotThis)))
Error in do.call(expression, plotThis) : second argument must be a list
> ## Whereas plotThis has class "call", c(plotThis) has class