i386 =20
os mingw32 =20
system i386, mingw32 =20
status =20
major2 =20
minor1.1 =20
year 2005 =20
month 06 =20
day 20=20
language R=20
Robert McGehee
Quantitative Anal
Upon upgrading to R 2.2.0 on my Windows box, I found that one of my
packages no longer compiled, giving this error:
Error in read.table(zfile, header =3D TRUE) :
more columns than column names
Execution halted
After removing every line of code from my package and still not being
able to c
Also perhaps a surprise that the behavior depends on the mode of the NA.
> is.na(as.character(list(NA_real_)))
[1] FALSE
> is.na(as.character(list(NA_character_)))
[1] TRUE
Does this mean deparse() preserves NA-ness for NA_character_ but not NA_real_?
-Original Message-
From: R-devel [
R developers,
Seems I get a bad result ("%#4.0-1e" in particular) when trying to use
prettyNum digits=0 with scientific notation. I tried on both my Linux box and
on an online R evaluator and saw the same problem, so it's not limited to my
box at least. I see the problem in both R 3.5.3 and R 3.
eems to
make the problem disappear for me in all cases. However, the odd output I
encountered along the way seemed worthy of comment.
HTH, Robert
-Original Message-
From: Martin Maechler [mailto:maech...@stat.math.ethz.ch]
Sent: Friday, March 22, 2019 5:11 AM
To: Robert McGehee
Hi,
The Matrix package and the as.matrix method do not seem to be compatible inside
of a package.
Here's an example. I've created a simple package "mat" that defines an
eponymous class and as.matrix method on that class. All is well, unless that
package has the Matrix package in its Depends or
S4.
Thanks again,
Robert
-Original Message-
From: Georgi Boshnakov [mailto:georgi.boshna...@manchester.ac.uk]
Sent: Sunday, January 29, 2017 1:40 PM
To: r-devel@r-project.org
Cc: Robert McGehee
Subject: RE: R-devel Digest, Vol 167, Issue 25
Hi,
Short answer: import 'as
I have no direct experience in this regard, but this FAQ seems to answer your
question.
https://www.gnu.org/licenses/gpl-faq.en.html#IfInterpreterIsGPL
I read this to mean that the answer may be different depending on whether your
code links against R libraries or simply uses R as an interprete
Winston,
I had a similar experience to you tracking down an insanely difficult bug in my
R code that "disappeared" whenever slight changes were made to the script (e.g.
like adding cat() statements). In my case, it coincided with my over-eager
compilation of R and its library stack, as I was als
Feature request:
I want to use update.formula to subtract an intercept (or other) term from a
formula with a dot on the RHS. However, as this causes an error, I propose a
patch below.
Thus, I want:
> update.formula(y ~ ., ~ . -1)
[1] y ~ . - 1
Instead I get this error:
Error in terms.formula(t
Hi,
It's been my experience that when you combine or aggregate vectors of factors
using a function, you should be prepared for surprises, as it's not obvious
what the "right" way to combine factors is (ordered or not), especially if two
vectors of factors have different levels or (if ordered) ar
Hi Jean-Luc,
FWIW, you're pointing out a common discrepancy between regex parsers, which is
whether or not a regex parser advances after finding both a zero-length match
and a non-zero-length match.
I think this article is especially helpful for understanding the nuances here,
particularly the
Full_Name: Robert McGehee
Version: 2.7.1
OS: Windows
Submission from: (NULL) (192.223.226.6)
R-developers,
The results below seem inconsistent. From the documentation for is.numeric, I
expect FALSE in both cases.
> x <- data.frame(dt=Sys.Date())
> is.numeric(x$dt)
[1] FALSE
&
ass)
dt
"Date"
Thanks,
Robert McGehee, CFA
Geode Capital Management, LLC
One Post Office Square, 28th Floor | Boston, MA | 02109
Tel: 617/392-8396Fax:617/476-6389
mailto:[EMAIL PROTECTED]
This e-mail, and any attachments hereto, are i
=20
year 2008 =20
month 04 =20
day22 =20
svn rev45424 =20
language R =20
version.string R version 2.7.0 (2008-04-22)
Thanks,
Robert M
Hello all,
It appears that for the simplest of S4 objects, z+1 does not equal 1+z.
Presumably this is a bug, as 1+z seems to make a malformed object (at
least malformed as an input to str).
Thanks, Robert
> setClass("test", representation("vector"))
[1] "test"
> z <- new("test", 1)
> identical(z+
=20
major 2=20
minor 3.0 =20
year 2006 =20
month 04 =20
day24 =20
svn rev37909 =20
language R
=20
language R=20
version.string Version 2.3.1 (2006-06-01)
Robert McGehee
Quantitative Analyst
Geode Capital Management, LLC
53 State Street, 5th Floor | Boston, MA | 02109
Tel: 617/392-8396Fax:617/476-6389
mailto:[EMAIL PROTECTED]
This e-mail, and any attachme
be of length 1
I believe the patch to fix this error is as follows (on R2.4.0(alpha)
Revision 39430)
- } else if (!missing(length.out)) {
+ } else if (!missing(length.out) && !is.null(length.out)) {
Another (perhaps better) patch would be to not have NULL be the default
for leng
19 matches
Mail list logo