pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/R-bit (devel/R-bit) Update 1.1.14 to 4.0.4
details: https://anonhg.NetBSD.org/pkgsrc/rev/9a44918f0424
branches: trunk
changeset: 454188:9a44918f0424
user: mef <mef%pkgsrc.org@localhost>
date: Sun Jun 06 23:44:37 2021 +0000
description:
(devel/R-bit) Update 1.1.14 to 4.0.4
CHANGES IN bit VERSION 4.0.4
USER VISIBLE CHANGES
o copy() and reverse() have been renamed to
copy_vector() and reverse_vector() to avoid
naming conflict with data.table
CHANGES IN bit VERSION 4.0.3
BUG FIXES
o temporarily removed link to clone.ff
to satisfy CRAN checks
CHANGES IN bit VERSION 4.0.2
USER VISIBLE CHANGES
o Vignettes nolonger execute ff code
for ff-version prior 4.0.0
BUG FIXES
o NA could crash bit_extract_unsorted
o now DESCRIPTION URL points to github
CHANGES IN bit VERSION 4.0.1
USER VISIBLE CHANGES
o bbatch now checks input N >= 0, B > 0
and returns batchsize b in 1..N
BUG FIXES
o NA could crash bit_extract_unsorted
CHANGES IN bit VERSION 4.0.0
NEW FEATURES
o new superclass ?booltype now allows proper method
dispatch even for two user defined booleans, e.g. (bit | bitwhich)
o new ordinal 'booltypes' nobool < logical < bit < bitwhich < which < ri
and diagnostic functions booltype() and is.booltype()
o bitwhich now has methods for [[ [ [[<- and [<-
o new functions 'c', '==', '!=', '|', '&', 'xor' for .booltype
o new function bitwhich_representation() to inspect the bitwhich
representation without the cost of unclass()
o new method 'is' for .which, .ri, .hi (and .booltype)
o new coercion generic as.booltype with .default method
o new coercion method as.logical.which
o new generic as.ri with methods for .ri and .default (lossy)
o new methods rep, rev, as.character and str for .bit and .bitwhich
o new methods all, any, min, max, range, sum, summary for .booltype, .which
o new method anyNA for all booltypes
o new dummy method 'is.na' for .bit, .bitwhich
o new function in.bitwhich much faster than %in%
o new integer sorting function bitsort() using bit_sort() or bit_sort_unique()
which can be by an order of magnitude faster than radix sorts
or falling back to one of countsort(), quicksort2(), quicksort3()
o new symmetric set function symdiff
o new functions copy(), reverse() for copying and reversing integer vectors
o new helper functions range_na(), range_nanozero(), range_sortna()
join multiple tasks in one go
o new fast unary functions for integers: bit_unique, bit_duplicated,
bit_anyDuplicated, bit_sumDuplicated
o new fast binary functions for integers: bit_in, bit_intersect, bit_union,
bit_setequal, bit_symdiff, bit_setdiff, bit_rangediff
o new fast unary functions for sorted integers: merge_rev,
merge_unique, merge_duplicated, merge_anyDuplicated, merge_sumDuplicated,
merge_first, merge_last,
o new fast binary functions for sorted integers:
merge_firstin, merge_firstnotin, merge_lastin, merge_lastnotin,
merge_match, merge_in, merge_notin,
merge_union, merge_intersect, merge_setdiff, merge_symdiff,
merge_setequal
o new even faster binary functions when the first argument is a range of integers:
merge_rangein, merge_rangenotin, merge_rangesect, merge_rangediff
o new function firstNA substantially faster than which.max(is.na(x))
o new function getsetattr() does setattr() but returns the old attr()
o new function get_length() directly returns LENGTH(SEXP)
circumventing all method dispatch for length()
o new methods rlepack.integer, rleunpack.rlepack anyDuplicated.rlepack
USER VISIBLE CHANGES
o license has been extendend from GPL-2 to GPL-2 | GPL-3
o S3methods are no longer exported in NAMESPACE
(except for .booltype)
o class bitwhich
- now is a fully functional alternative to bit vectors
- has argument order changed to (maxindex, x, poslength)
- its internal representation of bitwhich(0) has been changed
from FALSE to logical() and from unsorted to sorted integers
o class 'which' now carries an attribute 'maxindex' if available
o as.which() and bitwhich() now filter zeroes and store data unique(sort(x))
o as.which() now has methods for .which, .logical, .integer and .numeric
instead of .default.
o bit() and bitwhich() now behave more like logical(), without
arguments they return objects of length zero
o as.bit, as.bitwhich and as.which now have methods for class NULL
such that for example as.bit(c()) will return bit(0)
(wish of Martijn Schuemle)
o binary operators now allow for different lengths
and recycle instead of throwing an error
o xor.default now keeps the original definition of xor() and uses
a new method xor.logical to speed-up logicals
o the generics poslength and maxindex have been moved from package ff
with methods now for .default, .logical, .bit, .bitwhich, .which, .ri
o old method chunk.default has been renamed to chunks and now returns with names
(for backward compatibility chunk() with named arguments behaves as before)
o new method chunk.default calls chunks() along the length(x)
using typeof(x) or vmode(x), this replaces chunk.bit from package ff
o clone.default now uses R's C-function duplicate()
and clone.list has been removed
o intisasc() and intisdesc() have a new argument
na.method=c("none","break","skip") to specify tie handling
TESTING and DOCUMENTATION
o there are much more regression tests now
o testing uses package testthat
o documentation uses package roxygen2 now
o new vignettes bit-demo, bit-usage and bit-performance
BUG FIXES
o assignment functions '[<-.bit' now behave like '[<-.logical' when it
comes to NAs or ZEROs in subscripts
o length<-.bit no longer tries to access memory before it is allocated
o as.bit.bitwhich now handles non-positive bitwhich correctly
o declare as static many functions/variables in bit.c. (Thanks to Brian Ripley)
diffstat:
devel/R-bit/Makefile | 10 ++++++++--
devel/R-bit/distinfo | 10 +++++-----
2 files changed, 13 insertions(+), 7 deletions(-)
diffs (40 lines):
diff -r 1aa6a8d5cfc0 -r 9a44918f0424 devel/R-bit/Makefile
--- a/devel/R-bit/Makefile Sun Jun 06 23:39:26 2021 +0000
+++ b/devel/R-bit/Makefile Sun Jun 06 23:44:37 2021 +0000
@@ -1,13 +1,19 @@
-# $NetBSD: Makefile,v 1.5 2019/08/08 19:53:38 brook Exp $
+# $NetBSD: Makefile,v 1.6 2021/06/06 23:44:37 mef Exp $
R_PKGNAME= bit
-R_PKGVER= 1.1-14
+R_PKGVER= 4.0.4
CATEGORIES= devel
MAINTAINER= minskim%NetBSD.org@localhost
COMMENT= Class for vectors of 1-bit booleans
LICENSE= gnu-gpl-v2
+# Packages suggested but not available:
+# 'roxygen2', 'microbenchmark', 'bit64', 'ff'
+TEST_DEPENDS+= R-bit64-[0-9]*:../../devel/R-bit64
+TEST_DEPENDS+= R-microbenchmarks-[0-9]*:../../benchmarks/R-microbenchmark
+TEST_DEPENDS+= R-roxygen2-[0-9]*:../../devel/R-roxygen2
+
USE_LANGUAGES= c
.include "../../math/R/Makefile.extension"
diff -r 1aa6a8d5cfc0 -r 9a44918f0424 devel/R-bit/distinfo
--- a/devel/R-bit/distinfo Sun Jun 06 23:39:26 2021 +0000
+++ b/devel/R-bit/distinfo Sun Jun 06 23:44:37 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2018/07/04 08:13:59 wen Exp $
+$NetBSD: distinfo,v 1.3 2021/06/06 23:44:37 mef Exp $
-SHA1 (R/bit_1.1-14.tar.gz) = 453ff3bd2adbbf2a426a3007c684433d46eb85ab
-RMD160 (R/bit_1.1-14.tar.gz) = 935de899df19c04d9ee3e71bcf9b7500560cfb94
-SHA512 (R/bit_1.1-14.tar.gz) = b840d1469f5fce1ff8028992c19a4ca9bba9f84d073ccca7fab83fd172adbbe37a75fad23da73ea88c6ca90ba134f280f407ca86664563966d3e30cd6e8ea9e3
-Size (R/bit_1.1-14.tar.gz) = 54779 bytes
+SHA1 (R/bit_4.0.4.tar.gz) = 273e549e2ca0619b06650f86cf00f5ece371adf3
+RMD160 (R/bit_4.0.4.tar.gz) = 97066223fff1d3042e285f0b5e93ef1582cf4c53
+SHA512 (R/bit_4.0.4.tar.gz) = a570926aaabd2adb21940f310d096c50b21e261a746343fe502cedfb7aa84432037e1b197c41d0a433e15f1baf15af0fad61ba442f1c1fe5688b7c41e08d43af
+Size (R/bit_4.0.4.tar.gz) = 279723 bytes
Home |
Main Index |
Thread Index |
Old Index