similar to: Fix for bug in match()

Displaying 20 results from an estimated 1000 matches similar to: "Fix for bug in match()"

2011 Feb 21
1
Problem with documentation of user-defined operator (S4 method)
Dear list members, I have defined a binary operator %append% with methods for some S4 classes. In my documentation file, I want to list the methods explicitly by using e.g.: \S4method{\%append\%}{RecLinkData,RecLinkData}(x, y) In the HTML documentation this comes out right as ## S4 method for signature 'RecLinkResult,RecLinkResult' x %append% y , but R CMD check
2011 Jul 14
0
Gui editor / viewer for large data
Dear all, I am searching for a possibility to view large data sets (e.g. stored in ffdf objects) in a GUI window in a memory-efficient way. So far I looked at gtkDfEdit (package RGtk2Extras) and gdf (package gWidgets). Both operate (as far as I can see) on data frames stored in memory. gtkDfEdit accepts an ff data frame as input, but there is a long delay before it shows up, so I presume the
2011 Apr 20
0
Sweave stops when opening X11 device fails
Hi all, I've run into the following problem with Sweave: I frequently run Sweave from a xterm console within an X session owned by a different user, i.e. my colleague is logged in on this computer and I do "su" with my username and start R and Sweave afterwards. Now, when Sweave comes to a figure chunk, it sees that there is an X server running and tries to show whatever I plot
2010 Nov 23
0
read.table / type.convert: Unexpected column class
Hi all, I stumbled across the following, in my opinion surprising, behaviour of read.table: > data <- read.table(stdin(), sep=",") 0: 1, 2, 3 # Some comment 1: > sapply(data, class) V1 V2 V3 "integer" "integer" "numeric" I was surprised to find that V3 has class "numeric" despite its apparent integer value. I
2010 Nov 15
1
Package with multiple shared libraries
Dear R-devel members, I would like to compile a package with two seperate shared libraries. For example, in a package 'foo', a file 'bar.so' built from a distinct set of source files should be installed in addition to the default 'foo.so' (or .dll on windows). Does anyone know about a way to achieve this without having a custom Makefile, e.g. via 'Makevars'?
2009 Dec 07
0
Sweave, cacheSweave, and data frame
It's been a while since this thread appeared, but I had the same problem and don't want to keep the solution for myself. A small, reproducible example: <<cache=true>>= a=1 @ <<>>= a+1 @ Compiling with cacheSweave gives an error: > library(cacheSweave) Lade n?tiges Paket: filehash filehash: Simple key-value database (2.0-1 2008-12-19) Lade n?tiges Paket:
2010 Dec 07
3
How to find out if a data frame has automatic row names?
Hi all, I just stumbled across the difference between explicit and 'automatic' row names for data frames. Is there a quick way to find out if a data frame has automatic row names or not? Of course I know this for data frames that I create myself, but what if a function needs to extract this information for an argument? The following example shows that this property is not easily
2011 May 03
1
[R] Sweave stops when opening X11 device fails
Hi all, I am posting this again because I got no reply on r-help. Maybe the devel-list is the right place for this kind of question. I've run into the following problem with Sweave: I frequently run Sweave from a xterm console within an X session owned by a different user, i.e. my colleague is logged in on this computer and I do "su" with my username and start R and Sweave
2011 Mar 11
2
Using missing() in a S4 method with extra arguments
Hi all, I have a function which makes use of missing() to determine which arguments are provided in the call - basically, there are two sets of arguments that map to different strategies the function uses to fulfill its task. After conversion to an S4 generic I've run into the problem that if a method uses extra arguments that are not in the signature of the generic, usage of missing()
2011 Mar 15
2
Feature request: txtProgressBar with ability to write to arbitrary stream
Hi all, I use txtProgressBar to monitor progress of large computations. What I miss is the ability to redirect the progress bar to a stream other than stdout, specifically to the message stream. This would be useful for running Sweave scripts: When redirected to stderr, the bar could be visible even though console output is diverted to the output file (and there would be no cluttering of the
2008 Aug 16
1
unique.default problem (PR#12551)
Full_Name: Vilmos Prokaj Version: R 2.7.1 OS: windows Submission from: (NULL) (213.181.195.84) Dear developers, The following line of code (produced by a mistake) caused an infinite loop unique("a",c("a","b")) or also unique(1,1:2) I made a little investigation, and it seems to be that the following function from unique.c is looping infinitely static int
2010 Feb 22
1
shash in unique.c
Looking at shash in unique.c, from R-2.10.1 I'm wondering if it makes sense to hash the pointer itself rather than the string it points to? In other words could the SEXP pointer be cast to unsigned int and the usual scatter be called on that as if it were integer? shash would look like a slightly modified version of ihash like this : static int shash(SEXP x, int indx, HashData *d) {
2010 Sep 08
0
Correction to vec-subset speed patch
I found a bug in one of the fourteen speed patches I posted, namely in patch-vec-subset. I've fixed this (I now see one does need to duplicate index vectors sometimes, though one can avoid it most of the time). I also split this patch in two, since it really has two different and independent parts. The patch-vec-subset patch now has only some straightforward (locally-checkable) speedups for
2011 Oct 05
1
unique possible bug
Hi, I am trying to read in a rather large list of transactions using the arules library. It seems in the coerce method into the dgCmatrix, it somewhere calls unique. Unique.c throws an error when n > 536870912; however, when 4*n was modified to 2*n in 2004, the overflow protection should have changed from 2^29 to 2^30, right? If so, how would I change it in my copy? Do I have to recompile
2004 Nov 30
1
about the subscript assignment porblem
Hi, Dear, I have a problem for the new version 2.0 of R When I put this code in it give me the error: uis$ivhx3[uis$ivhx>0] <- 1*(uis$ivhx==3) Error: NAs are not allowed in subscripted assignments but this would happen in version 1.91 there are missing data in the data set and it is represented as NA the data set can be find on line at the ucla web actually this is a example from its
2019 Jun 04
0
[External] undefined symbol errors when compiling package using ALTREP API
Hi Mark, So depending pretty strongly on what you mean by "ALTREP aware", packages aren't necessarily supposed to be ALTREP aware. What I mean by this is that as of right now, ALTREP objects are designed to be interacted with by non-ALTREP-implementing package code, *more-or-less *exactly as standard (non-AR) SEXPs are: via the published C API. The more or less comes from the fact
2004 Aug 19
0
suggesting a new feature for unique()
Dear R-devel, May I suggest that a new feature be added to a couple of unique() methods? Sometimes it's useful to have the indices of the original data that the unique elements come from, so that the original data can be recreated from the unique()ed data. I suggest that an `index' argument be added for unique. Below is a suggested patch against R/src/library/base/R/duplicated.R: ***
2009 Mar 30
1
duplicated fails to rise correct errors (PR#13632)
Full_Name: Wacek Kusnierczyk Version: 2.8.0 and 2.10.0 r48242 OS: Ubuntu 8.04 Linux 32 bit Submission from: (NULL) (129.241.110.161) In the following code: duplicated(data.frame(), incomparables=NA) # Error in if (!is.logical(incomparables) || incomparables) .NotYetUsed("incomparables != FALSE") : # missing value where TRUE/FALSE needed the raised error is clearly not the
2008 Sep 12
1
match and incomparables
Hello, I was playing around with the newly implemented 'incomparables' argument in 'match' and realized the argument does not behave anything like I expected. Can someone explain what is going on here? Sorry if I'm misreading the documentation. > match(1:3, 1:3, incomparables=1) [1] NA 2 3 # This seems right, the 1 in 'x' is 'incomparable' >
2007 Nov 02
0
applying duplicated, unique and match to lists?
Dear R developers, While improving duplicated.array() and friends and developing equivalents for the new ff package for large datasets I came across two questions: 1) is it safe to use duplicated.default(), unique.default() and match() on arbitrary lists? If so, we can speed up duplicated.array and friends considerably by using list() instead of paste(collapse="\r") 2) while