[r-cran-misctools] 01/01: Import Debian changes 0.6-16-1

Sébastien Villemot sebastien at debian.org
Mon Oct 2 13:13:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

sebastien pushed a commit to branch master
in repository r-cran-misctools.

commit b6107a784d7911e5b00c3fce57329171543228f8
Author: Andreas Tille <tille at debian.org>
Date:   Mon Jun 23 09:24:05 2014 +0200

    Import Debian changes 0.6-16-1
    
    r-cran-misctools (0.6-16-1) unstable; urgency=low
    
      * Initial release (Closes: #752502).
---
 debian/README.test                   |   8 +++
 debian/changelog                     |   5 ++
 debian/compat                        |   1 +
 debian/control                       |  23 ++++++++
 debian/copyright                     |  30 ++++++++++
 debian/docs                          |   3 +
 debian/patches/series                |   1 +
 debian/patches/skip_ecdat_test.patch | 109 +++++++++++++++++++++++++++++++++++
 debian/rules                         |   4 ++
 debian/source/format                 |   1 +
 debian/tests/control                 |   3 +
 debian/tests/run-unit-test           |  42 ++++++++++++++
 debian/watch                         |   2 +
 13 files changed, 232 insertions(+)

diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..55a9142
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+To run the unit tests provided by the package you can do
+
+   sh  run-unit-test
+
+in this directory.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..84f8684
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+r-cran-misctools (0.6-16-1) unstable; urgency=low
+
+  * Initial release (Closes: #752502).
+
+ -- Andreas Tille <tille at debian.org>  Mon, 23 Jun 2014 09:24:05 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..9f89f4d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,23 @@
+Source: r-cran-misctools
+Section: gnu-r
+Priority: optional
+Testsuite: autopkgtest
+Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+Build-Depends: debhelper (>= 9.0),
+               cdbs,
+               r-base-dev
+Standards-Version: 3.9.5
+Vcs-Browser: http://anonscm.debian.org/viewvc/debian-science/packages/R/trunk/packages/r-cran-misctools/trunk/
+Vcs-Svn: svn://anonscm.debian.org/debian-science/packages/R/trunk/packages/r-cran-misctools/trunk/
+Homepage: http://cran.r-project.org/web/packages/miscTools/
+
+Package: r-cran-misctools
+Architecture: all
+Depends: ${misc:Depends},
+         ${R:Depends}
+Description: GNU R miscellaneous tools and utilities
+ This package contains miscellaneous small tools and utilities for
+ GNU R.  These tools are needed for running the unit tests of some
+ other GNU R packages in Debian.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2da7686
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,30 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: miscTools
+Upstream-Contact: Arne Henningsen <arne.henningsen at gmail.com>
+Source: http://cran.r-project.org/web/packages/miscTools/
+
+Files: *
+Copyright: 2008-2013 Ott Toomet, Arne Henningsen,
+License: GPL-2+
+
+Files: debian/*
+Copyright: 2014 Andreas Tille <tille at debian.org>
+License: GPL-2+
+
+License: GPL-2+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ .
+ On Debian systems, the complete text of the GNU General Public
+ License can be found in `/usr/share/common-licenses/GPL-2'.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..3adf0d6
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,3 @@
+debian/README.test
+debian/tests/run-unit-test
+tests
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..cd58b7a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+skip_ecdat_test.patch
diff --git a/debian/patches/skip_ecdat_test.patch b/debian/patches/skip_ecdat_test.patch
new file mode 100644
index 0000000..0058403
--- /dev/null
+++ b/debian/patches/skip_ecdat_test.patch
@@ -0,0 +1,109 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Mon, 23 Jun 2014 09:24:05 +0200
+Description:  The colMediansTest needs data from the Ecdat package from
+   http://cran.r-project.org/web/packages/Ecdat/
+ that in turn needs another package to maintain these data.  Since we
+ need to cut the chain of dependencies that are just packaged to run
+ sensible tests this test is left out.  If you install these data
+ manually or perhaps use the inofficial and incomplete packaging at
+   svn://anonscm.debian.org/debian-science/packages/R/trunk/packages/r-cran-ecdat/trunk/
+ this patch can be droped for local tests
+
+--- miscTools.orig/tests/colMediansTest.R
++++ miscTools/tests/colMediansTest.R
+@@ -13,29 +13,3 @@
+ all.equal( cm1, rowMedians( t( m ) ) )
+ all.equal( rm1, colMedians( t( m ) ) )
+ 
+-
+-## data.frame
+-data( "Electricity", package = "Ecdat" )
+-Electricity <- Electricity[ 1:20, ]
+-
+-cm2 <- colMedians( Electricity )
+-print( cm2 )
+-
+-rm2 <- rowMedians( Electricity )
+-print( rm2 )
+-
+-all.equal( cm2, rowMedians( t( Electricity ) ) )
+-all.equal( rm2, colMedians( t( Electricity ) ) )
+-
+-# array (3 dimensions)
+-a3 <- array( 1:24, dim = c(4,3,2),
+-   dimnames = list( c("a","b","c","d"), c("A","B","C"), c("x","y") ) )
+-colMedians( a3 )
+-all.equal( median( a3[ , "B", "y" ] ), colMedians( a3 )[ "B", "y" ] )
+-
+-# array (4 dimensions)
+-a4 <- array( 1:120, dim = c(5,4,3,2),
+-   dimnames = list( c("a","b","c","d","e"), c("A","B","C","D"),
+-   c("x","y","z"), c("Y","Z") ) )
+-colMedians( a4 )
+-all.equal( median( a4[ , "B", "x", "Z" ] ), colMedians( a4 )[ "B", "x", "Z" ] )
+--- miscTools.orig/tests/colMediansTest.Rout.save
++++ miscTools/tests/colMediansTest.Rout.save
+@@ -36,63 +36,3 @@
+ [1] TRUE
+ > 
+ > 
+-> ## data.frame
+-> data( "Electricity", package = "Ecdat" )
+-> Electricity <- Electricity[ 1:20, ]
+-> 
+-> cm2 <- colMedians( Electricity )
+-> print( cm2 )
+-      cost          q         pl         sl         pk         sk         pf 
+-   3.09655  422.50000 7794.10000    0.21090   69.26100    0.24415   25.95070 
+-        sf 
+-   0.59860 
+-> 
+-> rm2 <- rowMedians( Electricity )
+-> print( rm2 )
+-       1        2        3        4        5        6        7        8 
+- 4.20985 12.05485 25.04895 14.64980 20.72935 18.42610 16.34295  7.24435 
+-       9       10       11       12       13       14       15       16 
+-11.32520  8.27460 14.17730 13.01815 22.80935 17.95680 14.06405 15.67750 
+-      17       18       19       20 
+-15.49855 12.44370 15.61920 21.87700 
+-> 
+-> all.equal( cm2, rowMedians( t( Electricity ) ) )
+-[1] TRUE
+-> all.equal( rm2, colMedians( t( Electricity ) ) )
+-[1] TRUE
+-> 
+-> # array (3 dimensions)
+-> a3 <- array( 1:24, dim = c(4,3,2),
+-+    dimnames = list( c("a","b","c","d"), c("A","B","C"), c("x","y") ) )
+-> colMedians( a3 )
+-     x    y
+-A  2.5 14.5
+-B  6.5 18.5
+-C 10.5 22.5
+-> all.equal( median( a3[ , "B", "y" ] ), colMedians( a3 )[ "B", "y" ] )
+-[1] TRUE
+-> 
+-> # array (4 dimensions)
+-> a4 <- array( 1:120, dim = c(5,4,3,2),
+-+    dimnames = list( c("a","b","c","d","e"), c("A","B","C","D"),
+-+    c("x","y","z"), c("Y","Z") ) )
+-> colMedians( a4 )
+-, , Y
+-
+-   x  y  z
+-A  3 23 43
+-B  8 28 48
+-C 13 33 53
+-D 18 38 58
+-
+-, , Z
+-
+-   x  y   z
+-A 63 83 103
+-B 68 88 108
+-C 73 93 113
+-D 78 98 118
+-
+-> all.equal( median( a4[ , "B", "x", "Z" ] ), colMedians( a4 )[ "B", "x", "Z" ] )
+-[1] TRUE
+-> 
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1cb1c9f
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+#	-*- makefile -*-
+
+include /usr/share/R/debian/r-cran.mk
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..25377fc
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, r-cran-runit
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..c3e6c15
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,42 @@
+#!/bin/sh -e
+
+pkg=r-cran-misctools
+
+# The saved result files do contain some differences in metadata and we also
+# need to ignore version differences of R
+filter() {
+    grep -v -e '^R version' \
+        -e '^Copyright (C)' \
+        -e '^R : Copyright 20' \
+        -e '^Version 2.0' \
+        -e '^Platform:' \
+        -e '^ISBN 3-900051-07-0' \
+        -e '^\[1\] "L*C' \
+        -e '^During startup - Warning messages:' \
+        -e '^[0-9]: Setting LC_' \
+        -e "'help.start()' for an* HTML browser interface to help." \
+       $1 | \
+    sed '/^> *proc\.time()$/,$d'
+}
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp /usr/share/doc/${pkg}/tests/* $ADTTMP
+gunzip *.gz
+for htest in `ls *.R | sed 's/\.R$//'` ; do
+   LC_ALL=C R --no-save < ${htest}.R 2>&1 | tee > ${htest}.Rout
+   filter ${htest}.Rout.save > ${htest}.Rout.save_
+   filter ${htest}.Rout > ${htest}.Rout_
+   diff -u --ignore-space-change ${htest}.Rout.save_ ${htest}.Rout_
+   if [ ! $? ] ; then
+     echo "Test ${htest} failed"
+     exit 1
+   else
+     echo "Test ${htest} passed"
+   fi
+done
+rm -f $ADTTMP/*
+
+exit 0
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..02c7f83
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://cran.r-project.org/src/contrib/miscTools_([-\d.]*)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/r-cran-misctools.git



More information about the debian-science-commits mailing list