Displaying 20 results from an estimated 2000 matches similar to: "bug in `pmatch' (error with too long 'choices')?"
2009 Oct 28
1
'R CMD check' fails with "evaluation nested too deeply: infinite recursion"
I get the error
Error : evaluation nested too deeply: infinite recursion / options(expressions=)?
during a 'R CMD check ...'
on one of my packages. The reason seems to be that this package is
mutually dependent on another one (i.e. the DESCRIPTION files of package
A lists package B under "Depends" and vice versa). this might be bad
design (having bits in both packages needed
2006 Feb 14
1
figs parameter for split.screen()
Dear all,
I would be pleased if anyone could help me.
The Rhelp description for the figs parameter is "a two-element vector
describing
the number of rows and colunns in a screen matrix".
So, why does my code (below) produce a 2x1 screen matrix instead of
a 1x2 one?
Thanks in advance,
rodrigo.
-----------------------------------------------------------
plot.new()
2009 Feb 25
2
Fontconfig warning with X11() on MAC OS X 10.4
I posted previously about problems with X11() on my MAC using R 2.8.1 .
After installing the securilty update for Tiger this morning, X11() now
works from an xterm :-)
However, I receive the following warnings with any plotting command using
the default X11 settings.
Fontconfig warning: no <cachedir> elements found. Check configuration.
Fontconfig warning: adding
2009 May 05
2
Way to handle variable length and numbers of columns using read.table(...)
I've got read.table to successfully read in my table of three columns. Most of the time I will have a set number of rows, but sometime that will be variable and sometimes there will be only be two variables in one row, e.g.
Time Loc1 Loc2
1 22.33 44.55
2 66.77 88.99
3 222.33344.55
4 66.77 88.99
Is there any way to have read.table handle (1) a variable number of rows, and (2) sometime there
2009 Mar 26
1
Console colors do not stick (PR#13625)
Full_Name: Sean Laverty
Version: R version 2.8.1 (2008-12-22)
OS: os x 10.5.6
Submission from: (NULL) (155.101.41.13)
In the console colors window, colors do not stick when palettes are closed. All
custom colors are replaced by blue. I've tried all palettes - crayons, sliders,
wheel, spectrum.
"R.bug.report" 30L, 582C[2;1H<<insert bug report here>>[6;1H--please do
2009 Apr 22
1
Clarification for options(OutDec)
The documentation for the OutDec option says that it should be a
'one-character string'; yet, if I try a unicode character, it doesn't seem
to work. Are unicode chars not counted as one-character?
This is within the mac GUI, but I also see this on linux boxes.
> x <- '\u00B7'
> nchar(x)
[1] 1
> options(OutDec=x)
Error in options(OutDec = x) : invalid value for
2009 Jun 30
1
possible agrep bug; R 2.9.1, Mac OS X 10.5 (PR#13789)
Same behavior was noted on R 2.9.0 OS X and WIndows.
> t(sapply(seq(0.01, .99, length=20), function(x) c(x, length(agrep("Staatssekretar im Bundeskanzleramt","Bundeskanzler",max.distance=x)))))
[1,] 0.01000000 0
[2,] 0.06157895 0
[3,] 0.11315789 0
[4,] 0.16473684 0
[5,] 0.21631579 0
[6,] 0.26789474 0
[7,] 0.31947368 0
[8,] 0.37105263 0
[9,]
2009 Jan 03
1
Bug report in foreign library (PR#13425)
here appears to be a bug in the foreign library. The following code used to
work, but now generates an error when 'package="SAS"' is specified:
ds <- read.csv("http://www.math.smith.edu/sasr/datasets/help.csv")
# running foreign package version 0.8-30
library(foreign)
# this works fine
write.foreign(ds, "foo", "bar", package="Stata")
#
2009 Mar 04
4
bug (PR#13570)
<<insert bug report here>>
This is a CRITICAL bug!!! I have verified it in R 2.8.1 for mac and
for windows. The problem is with loess degree=0 smoothing. For
example, try the following:
x <- 1:100
y <- rnorm(100)
plot(x, y)
lines(predict(loess(y ~ x, degree=0, span=0.5)))
This is obviously wrong.
R 2.8
--please do not edit the information below--
Version:
platform
2009 Feb 05
2
Unexpected mfrow, layout behavior (pdf still has multiple pages)
My goal is to create a graph with one column and three rows into a
single graphic. The mfrow, mfcol, and layout functions all have the
same effect: three graphs are produced in a single pdf file, having
one graph per page. This is not what I want (I didn't want multiple
pages). Just before I sent this post, I was able to generate the
desired output with split.screen. Is this the expected
2009 Nov 19
0
Passing filenames to the getopt package
Hi all,
I've finally started to use Rscript for my statistical scripting
needs, and find I'm being blocked by what must be a very simple
problem. Specifically, the command lines for my scripts usually
contain: (1) the script name, (2) one or more options and their
arguments, and finally, (3) one or more filenames to be processed.
While the "getopt" package seems to provide
2009 Aug 10
4
Saving plots to file
Appologies if this has been addressed before, but I can't seem to find it in
the help archives.
I'm looking to do something like the following but it looks like save.plot
is deprecated.
save.plot(plot(glm1$residuals,gain,main = "Hist of residuals and
gain"),file="Desktop/hist1.png")
Thanks in advance,
Sean
Session Info:
R version 2.9.1 (2009-06-26)
2009 Aug 03
2
Installing package for i386
I am trying to install a package from a collaborator that was given to me as
a zip file.
I'm running R 2.9.0 using Mac OSX 10.5.7
[R.app GUI 1.28 (5395) i386-apple-darwin8.11.1]
foo.zip contains all the usual package directories (man, R, R-ex, etc)
After unzipping foo, I used the following commands.
$ R CMD INSTALL foo
* Installing to library
2013 Jul 15
1
pmatch inconsistency
The pmatch help (see also section 4.3.2 in the R Language Definition)
claims that pmatch with duplicates.ok=FALSE provides the same
functionality as R's argument matching algorithm, modulo how empty
strings are matched.
Here's an undocumented inconsistency between pmatch and R's argument
matching algorithm:
> sessionInfo()
R version 3.0.1 (2013-05-16)
Platform:
1999 May 25
1
Muliple partial matches with pmatch
I am using R0.64.1 under Windows 95.
The help for `pmatch' states that:
If `duplicates.ok' is false multiple matches will result
in the value of `nomatch' being returned, and if it is
true, the index of the first matching value will be
returned.
The help for pmatch gives the following examples:
pmatch("m", c("mean",
2000 Oct 23
1
Regular Expression and Pmatch
Hi, I wonder if there's a good intro to the pattern matching using R? I'm a perl
programer and find it too confusing and complex to use regular expressions under R.
For instance, why does pmatch("d","ad") returns NULL? How would I call the
functions in order to match any portion of the string? Under what circumstances shall
backslush be used? I try to extract all
2004 Nov 02
1
install.packages, bundles, pmatch, and Rprofile...
Hi,
Somebody asked me to make sure that all the machines running the in our lab
(XP and Linux, both running 2.0) have R installed and that A) All the
packages are installed and B) kept up-to-date.
Obediently, I began to modify a shared Rprofile so that once a week it
checks for new packages and updates to the current version of the installed
packages on CRAN. Sounds simple enough. Plus some
2010 Nov 09
1
agrep pmatch recursive???
Hello R Helpers,
Business - 64 bit windows 7, R 2.11.1
I am trying to match the character contents of one list, called 'exclude', to those of a second list, called 'dataset'
dataset is a list of file names with folder locations, and looks like this when called:
> dataset
[1] "A/10-10-29a-13.cdf" "A/10-10-29a-14.cdf" "A/10-10-29a-15.cdf"
2009 Sep 16
3
apply function across two variables by mult factors
Greetings,
I am attempting to run a function, which produces a vector and
requires two input variables, across two nested factor levels. I can
do this using by(X, list(factor1, factor2), function), however I
haven't found a simple way to extract the list output into an
organized vector form. I can do this using nested loops but it isn't
exactly an optimal approach.
Thank you
2009 Jun 09
2
removing elements from a "unit" vector
Dear list,
I'm quite surprised by this,
unit(1:5,"char")[-c(1:2)]
#4char 3char # what's going on??
while I expected something like,
c(1:5)[-c(1:2)]
# 3 4 5
Note that,
unit(1:5,"char")[c(1:2)]
# 1char 2char # fine
?unit warns about unit.c for concatenating, but also says,
It is possible to subset unit objects in the normal way (e.g.,