Search Discussions
-
21
[Rd] R vs. C
A question, please about development of R packages: Are there any guidelines or best practices for deciding when and why to implement an operation in R, vs. implementing it in C? The "Writing R ...Patrick Leyshock
Jan 17, 2011 at 5:13 pm
Jan 18, 2011 at 5:50 pm -
Hi, str() on raster objects fails for certain dimensions. For example: Error in `[.raster`(object, seq_len(max.len)) : subscript out of bounds This seems to do with how str() and "[.raster"() is ...
Henrik Bengtsson
Jan 31, 2011 at 7:16 pm
Feb 8, 2011 at 8:59 pm -
Hello everyone! Motivated by the recent post on SO http://stackoverflow.com/questions/4730551/making-a-string-concatenation-operator-in-r I wonder what is the current state of argument on making "+" ...
Vitalie S.
Jan 22, 2011 at 8:08 pm
Jan 24, 2011 at 7:30 pm -
Dear r-devel list members, On a couple of occasions I've encountered the issue illustrated by the following examples: --------- snip ----------- + subs <- 1:10 + update(mod, subset=subs) + } Call ...
John Fox
Jan 4, 2011 at 9:35 pm
Jan 6, 2011 at 12:31 pm -
Hello, Using R-devel (rev 53950), I get inconsistent results with as.environment( VECSXP ) when gctorture is on. Consider: a <- list( aa = rnorm, bb = runif ) gctorture(TRUE) as.environment( a ) The ...
Romain Francois
Jan 11, 2011 at 7:33 pm
Jan 13, 2011 at 10:14 pm -
Two things have emerged in testing on x86_64 Fedora 14 which mean that a recent R-patched is probably needed. 1) That OS uses zlib 1.2.5: that claims to be binary-compatible with zlib 1.2.3 but is ...
Prof Brian Ripley
Jan 31, 2011 at 7:48 pm
Feb 2, 2011 at 3:39 pm -
[I originally posted this on the R-help mailing list, and it was suggested that R-devel would be a better place to dicuss it.] Running ?table? on a factor with levels containing non-ASCII characters ...
Karl Ove Hufthammer
Jan 21, 2011 at 9:47 am
Jan 26, 2011 at 1:37 pm -
Hi, A quick bench-mark of an R matrix muliplication 500by500 X 500by10000, all random variates, with matlab reveals a huge difference in speed (5 times at least). Is there anything that can be done ...
Oyvfos
Jan 14, 2011 at 8:09 am
May 10, 2011 at 6:07 am -
Hello, It seems that the plot function for dendrograms does not draw labels when they are too long. Is this expected ? Is it possible to force the drawing ? Thank you, Karl
Karl Forner
Jan 25, 2011 at 10:27 am
Jan 30, 2011 at 8:42 pm -
Hi, I'm putting together an R package. In explaining how it works (in the Rd files), I want to refer to another package. The other package is not used anywhere in the actual code nor in the ...
Kevin R. Coombes
Jan 27, 2011 at 8:22 pm
Jan 29, 2011 at 8:57 pm -
Hi, I build the binary package file of RPostgreSQL 0.1.7 for Windows 2003 Server R2 64 bit SP2, the software environments are as following: R 2.12.1 for Win64 RTools212 for Win64 DBI 0.2.5 ...
Xiaobo Gu
Jan 15, 2011 at 2:34 am
Jan 29, 2011 at 9:07 am -
I just tried ?Constants at the console and was disappointed that the so-named base help page would not come up. No documentation for 'Constants' in specified packages and libraries: you could try ...
David Winsemius
Jan 7, 2011 at 5:08 am
Jan 7, 2011 at 1:54 pm -
Hi, I'd like to construct an R list object in C++, fill it with relevant data, and pass it to an R function which will return a different list object back. I have browsed through all the R manuals, ...
Wayne Zhang
Jan 26, 2011 at 10:56 pm
Jan 27, 2011 at 9:16 pm -
I'm experimenting with a few model-fitting classes of my own. I'm leaning towards using S4 for my classes, but the R functions I'd want to override (residuals, predict, etc.) are all S3 methods. As I ...
Johann Hibschman
Jan 20, 2011 at 3:24 pm
Jan 24, 2011 at 5:13 pm -
Hi All, I am new to this area and use Rcpp to call C++ from R and try to build the package under Windows 7. I use Rtools and R 2.10.1 32bit. Everything works fine with me, except using R functions ...
Mtck1982
Jan 20, 2011 at 9:05 pm
Jan 22, 2011 at 7:21 pm -
Dear all, I just stumbled over the fact that subsetting by square bracket will only output the first given index. I guess the rest is thrown away by the CADDR in RenderSub (plotmath.c l. 1399). Maybe ...
Claudia Beleites
Jan 20, 2011 at 1:05 pm
Jan 21, 2011 at 6:25 pm -
I agree that it is natural then, to expect min(), max() and range() to work as well. (the above is now even more garbled than it was already by your use of HTML-ified e-mail ..) But your code is ...
Martin Maechler
Jan 5, 2011 at 3:26 pm
Jan 8, 2011 at 7:54 am -
Hi, is it possible, that the current development version for Windows ( http://cran.at.r-project.org/bin/windows/base/R-2.13.0dev-win.exe) is infected by a trojan/virus. My antivir-program ...
Andreas Mayr
Jan 28, 2011 at 8:47 am
Jan 28, 2011 at 2:17 pm -
Hi, I'm trying to make a new S4 object with a slot for a "link-glm" object. R doesn't like me have a slot of class "link-glm" [1] "a" Warning message: undefined slot classes in definition of "a" ...
Paul Bailey
Jan 28, 2011 at 4:51 am
Jan 29, 2011 at 8:49 pm -
Dear r-devel-list, dear John Chambers, I'm trying to learn OOP-possibilities in R and I was going through the documentation 'ReferenceClasses {methods}' (great work, by the way...). Reading ...
Marc Carpentier
Jan 28, 2011 at 7:01 pm
Jan 29, 2011 at 10:49 am -
Hi, is there an easy, robust, and/or recommended way to distinguish a missing argument from an empty argument as in: foo <- function(i, j){ print(missing(j)) print(nargs()) } foo(i) # TRUE, 1 foo(i,) ...
Renaud Gaujoux
Jan 25, 2011 at 9:27 am
Jan 25, 2011 at 11:01 am -
I currently have a program that automates 2-way ANOVA on a series of endpoints, but before the ANOVA is carried out I want the code to test the assumptions of normality and equal variance and report ...
Karthi Subramanian
Jan 24, 2011 at 5:05 pm
Jan 24, 2011 at 9:02 pm -
Request: An additional hook in plot.new() that is called prior to the call to .Internal(plot.new()). Reason: To allow the hook to set up or modify a graphics device that the new plot will appear in ...
Tony Plate
Jan 23, 2011 at 3:44 pm
Jan 23, 2011 at 8:23 pm -
Maybe I'm just overlooking something, but I can't figure out how to set/change the locale of a file loaded into the built-in script editor on Windows. The generic issue is that if I make a teaching ...
Peter dalgaard
Jan 21, 2011 at 3:14 pm
Jan 23, 2011 at 8:18 pm -
In R 2.12.0 I get y ~ x + f3 In S+ formula(m) gives formula given to model.frame(), but in R you have to do the following get that formula: y ~ (x + f3)^2 Would it break anything to add to the top of ...
William Dunlap
Jan 7, 2011 at 1:29 am
Jan 19, 2011 at 11:43 pm -
I have run into a potential bug somewhere between format (specifically scientific notation) and plotmath that results in displaying: $1e+01^{2e+00}$ instead of $10^2$ Reproduce by: plot.new() ...
Philip Johnson
Jan 17, 2011 at 10:06 pm
Jan 18, 2011 at 4:52 pm -
I believe there is a memory leak in isoreg in the current version of R, as I believe the following shows used (Mb) gc trigger (Mb) max used (Mb) Ncells 120405 3.3 350000 9.4 350000 9.4 Vcells 78639 ...
Simon Wotherspoon
Jan 17, 2011 at 3:41 am
Jan 17, 2011 at 9:53 pm -
This might be a dumb question, but I couldn't figure out how to find the answer: why is it that comments in R documentation files (i.e. in examples) typically start with a double hash (##) instead of ...
Dhinds
Jan 13, 2011 at 7:34 pm
Jan 14, 2011 at 6:53 pm -
Have UI that simplifies running code from another (internal) package, allowing user to set values on fields I basically grabbed from results of calls to formals() for various functions. That works ...
Roebuck,Paul L
Jan 12, 2011 at 5:23 pm
Jan 13, 2011 at 8:46 pm -
Recently installed 2.12.1 on my CentOS 5.5 box. Install of R went without incident, and packages downloaded and compiled fine. With one exception -- my interest is somewhat in the problems with this ...
Egc
Jan 6, 2011 at 9:27 pm
Jan 7, 2011 at 3:52 pm -
Dear All, I need to convert all Rd help pages for my package to HTML format in order to serve these on our web-server. Ideally, I would like to do that as "all docs in single page" and also index ...
016750
Jan 28, 2011 at 6:35 am
Jan 28, 2011 at 7:46 am -
Dear list, There is, I believe, a minor typo in the example section of influence.measures.Rd. In the final example the word `does` appears where I suspect `dose` is required: I couldn't remember ...
Gavin Simpson
Jan 27, 2011 at 2:47 pm
Jan 27, 2011 at 6:09 pm -
Dear list, I'm tackling an empiric research problem that requires me to address a whole bunch of conceptual and/or technical details at the same time which cuts time short for all the nitty-gritty ...
Janko Thyson
Jan 26, 2011 at 7:34 pm
Jan 26, 2011 at 10:31 pm -
I'm having a problem with aggregate.formula when I call it in a function and the function is converted from a string in the funtion I think my problem may also only occur when the left hand side of ...
Paul Bailey
Jan 26, 2011 at 7:04 pm
Jan 26, 2011 at 7:31 pm -
Hi. I'm writing a print method for an object that includes a numeric matrix for which the lower diagonal elements are not meaningful. So I make the lower diagonal of my matrix NA and print it. But my ...
Robin Hankin
Jan 25, 2011 at 3:34 pm
Jan 25, 2011 at 4:08 pm -
Dear R developers, A recent typo led me to discover, that R is happy to accept [1] 20 as input. This appears to be related to the parsing of hexadecimal constants, since there must be a zero before ...
Olaf Mersmann
Jan 24, 2011 at 8:15 am
Jan 25, 2011 at 7:22 am -
I'm converting the "Changelog" files that I have used in the survival package (since the 1980s) to the inst/NEWS.Rd format and a couple of things are not clear from the help page. 1. What should I ...
Terry Therneau
Jan 22, 2011 at 3:58 pm
Jan 24, 2011 at 10:07 pm -
Dear list, I was wondering if it is possible to create and use a package namespace at the development stage of a package. To clarify, I would like to make sure that my package functions (and not some ...
Janko Thyson
Jan 23, 2011 at 8:21 pm
Jan 24, 2011 at 10:47 am -
When weighted.residuals() is given a fitted model object with several responses (class mlm) and some zero weights it returns a vector instead of a matrix. It looks like it is doing resids[ weights != ...
William Dunlap
Jan 19, 2011 at 10:58 pm
Jan 20, 2011 at 7:29 am -
x <- NA na.act <- na.action(na.exclude(x)) y <- rep(0,0) naresid(na.act,y) ... currently produces the result... numeric(0) ... whereas the documentation might lead you to expect NA The behaviour is ...
Simon Wood
Jan 14, 2011 at 2:52 pm
Jan 19, 2011 at 12:06 pm -
A colleague designed a script for a bar plot, which I'd like to export to my directory via the barplot command: bitmap(file="barplot.tif", type="tifflzw", height=4, width=6.5, res50) Unfortunately, ...
Jeremy Koster
Jan 14, 2011 at 6:12 pm
Jan 15, 2011 at 7:59 am -
Hi, I use Sweave extensively in my consulting work. When submitting reports to the scientists I work with I like to use the citation function to reference any packages I use, to give proper ...
Nicholas Lewin-Koh
Jan 7, 2011 at 4:25 pm
Jan 8, 2011 at 2:37 pm -
Hi, I am currently writing an extension for R and have the need to include some C code. If I call the code with a large amount of data then it can take several minutes to complete. The C code prints ...
Robert Lowe
Jan 4, 2011 at 4:41 pm
Jan 4, 2011 at 5:09 pm -
Hi. The following results in a data.frame with column names starting with "A.": x y 1 1 1 2 2 2 A.x A.y 1 1 1 2 2 2 whereas with a single-column matrix you won't get "A.": x 1 1 2 2 x 1 1 2 2 I'd ...
Henrik Bengtsson
Jan 31, 2011 at 4:14 am
Jan 31, 2011 at 4:14 am -
Hello, I noticed a behavior ot the cut() function that does not seem right. In a dendrogram with only 2 leaves in one cluster, if you cut() at a height above this cluster, you end up with 2 cut ...
Karl Forner
Jan 28, 2011 at 11:54 am
Jan 28, 2011 at 11:54 am -
Dear all, I just saw that Google Summer of Code 2011 is announced: http://www.google-melange.com/ Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Universit? degli ...
Claudia Beleites
Jan 27, 2011 at 2:48 pm
Jan 27, 2011 at 2:48 pm -
Hi list, When nesting 2 function calls, if an exception occurs during the inner call, the error message will display properly: bar <- function() stop("bar() is broken") foo <- function(x) {x * (x - ...
Hervé Pagès
Jan 25, 2011 at 6:13 pm
Jan 25, 2011 at 6:13 pm -
I forgot to state the version of R in my last message. R version 2.12.1 (2010-12-16) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-pc-linux-gnu ...
Terry Therneau
Jan 22, 2011 at 4:04 pm
Jan 22, 2011 at 4:04 pm -
Hi all, i am trying to compile a test, calling from C code R Lapack shared libraries. In particular, i am calling simple LAPACK driver dposv for solving linear equation system A*x=B with positive ...
Andre Zege
Jan 22, 2011 at 2:43 am
Jan 22, 2011 at 2:43 am -
Hi, I have just encountered a strange behaviour from 'cor' with regards to the treatment of NAs when calculating Spearman correlations. I guess it is a subtle bug. If I understand the help page ...
Simon Anders
Jan 21, 2011 at 6:13 pm
Jan 21, 2011 at 6:13 pm
Group Overview
group | r-devel |
categories | r |
discussions | 60 |
posts | 212 |
users | 83 |
website | r-project.org |
irc | #r |
83 users for January 2011
Archives
- June 2016 (34)
- May 2016 (174)
- April 2016 (105)
- March 2016 (133)
- February 2016 (127)
- January 2016 (93)
- December 2015 (92)
- November 2015 (80)
- October 2015 (164)
- September 2015 (133)
- August 2015 (120)
- July 2015 (110)
- June 2015 (165)
- May 2015 (242)
- April 2015 (131)
- March 2015 (212)
- February 2015 (147)
- January 2015 (117)
- December 2014 (118)
- November 2014 (201)
- October 2014 (146)
- September 2014 (162)
- August 2014 (217)
- July 2014 (153)
- June 2014 (195)
- May 2014 (193)
- April 2014 (231)
- March 2014 (270)
- February 2014 (107)
- January 2014 (186)
- December 2013 (122)
- November 2013 (156)
- October 2013 (215)
- September 2013 (248)
- August 2013 (239)
- July 2013 (167)
- June 2013 (151)
- May 2013 (223)
- April 2013 (278)
- March 2013 (229)
- February 2013 (254)
- January 2013 (201)
- December 2012 (207)
- November 2012 (154)
- October 2012 (203)
- September 2012 (175)
- August 2012 (209)
- July 2012 (180)
- June 2012 (148)
- May 2012 (241)
- April 2012 (215)
- March 2012 (343)
- February 2012 (248)
- January 2012 (242)
- December 2011 (201)
- November 2011 (328)
- October 2011 (262)
- September 2011 (221)
- August 2011 (239)
- July 2011 (248)
- June 2011 (283)
- May 2011 (367)
- April 2011 (393)
- March 2011 (284)
- February 2011 (344)
- January 2011 (212)
- December 2010 (274)
- November 2010 (300)
- October 2010 (280)
- September 2010 (322)
- August 2010 (303)
- July 2010 (248)
- June 2010 (187)
- May 2010 (231)
- April 2010 (284)
- March 2010 (287)
- February 2010 (329)
- January 2010 (258)
- December 2009 (353)
- November 2009 (496)
- October 2009 (367)
- September 2009 (461)
- August 2009 (353)
- July 2009 (269)
- June 2009 (329)
- May 2009 (354)
- April 2009 (354)
- March 2009 (535)
- February 2009 (351)
- January 2009 (324)
- December 2008 (226)
- November 2008 (315)
- October 2008 (301)
- September 2008 (208)
- August 2008 (309)
- July 2008 (246)
- June 2008 (265)
- May 2008 (399)
- April 2008 (515)
- March 2008 (314)
- February 2008 (345)
- January 2008 (324)
- December 2007 (324)
- November 2007 (272)
- October 2007 (272)
- September 2007 (265)
- August 2007 (260)
- July 2007 (280)
- June 2007 (246)
- May 2007 (389)
- April 2007 (410)
- March 2007 (371)
- February 2007 (298)
- January 2007 (385)
- December 2006 (293)
- November 2006 (389)
- October 2006 (487)
- September 2006 (455)
- August 2006 (111)
- July 2006 (397)
- June 2006 (367)
- May 2006 (413)
- April 2006 (441)
- March 2006 (381)
- February 2006 (349)
- January 2006 (390)
- December 2005 (261)
- November 2005 (318)
- October 2005 (528)
- September 2005 (369)
- August 2005 (369)
- July 2005 (274)
- June 2005 (410)
- May 2005 (331)
- April 2005 (465)
- March 2005 (276)
- February 2005 (291)
- January 2005 (272)
- December 2004 (199)
- November 2004 (388)
- October 2004 (318)
- September 2004 (273)
- August 2004 (298)
- July 2004 (267)
- June 2004 (286)
- May 2004 (168)
- April 2004 (268)
- March 2004 (316)
- February 2004 (271)
- January 2004 (292)
- December 2003 (164)
- November 2003 (249)
- October 2003 (311)
- September 2003 (262)
- August 2003 (305)
- July 2003 (170)
- June 2003 (271)
- May 2003 (239)
- April 2003 (273)
- March 2003 (155)
- February 2003 (1)
- January 2003 (1)
- December 2002 (1)
- October 2002 (1)
- September 2002 (1)
- August 2002 (1)
- July 2002 (1)
- June 2002 (1)
- April 2002 (2)
- March 2002 (1)
- February 2002 (1)
- January 2002 (1)
- December 2001 (1)
- November 2001 (1)
- October 2001 (1)
- September 2001 (1)
- August 2001 (1)
- July 2001 (1)
- June 2001 (1)
- May 2001 (1)
- April 2001 (1)
- March 2001 (1)
- February 2001 (1)
- January 2001 (1)
- December 2000 (1)
- November 2000 (1)
- October 2000 (1)
- September 2000 (1)
- August 2000 (1)
- July 2000 (1)
- May 2000 (2)
- April 2000 (1)
- March 2000 (1)
- February 2000 (1)
- January 2000 (1)
- December 1999 (1)
- November 1999 (1)
- October 1999 (1)
- September 1999 (1)
- August 1999 (1)
- July 1999 (1)
- June 1999 (1)
- May 1999 (1)
- March 1999 (2)
- February 1999 (1)
- January 1999 (1)
- December 1998 (1)
- November 1998 (1)
- October 1998 (1)
- September 1998 (1)
- August 1998 (1)
- July 1998 (1)
- June 1998 (1)
- May 1998 (1)
- April 1998 (1)
- March 1998 (1)
- February 1998 (1)
- January 1998 (1)
- December 1997 (1)
- November 1997 (1)
- October 1997 (1)
- September 1997 (1)
- August 1997 (1)
- July 1997 (1)
- June 1997 (1)
- May 1997 (1)
- April 1997 (1)