Bug#894887: r-cran-matrix: new version installs in different directory and breaks R CMD check

2018-04-05 Thread Dirk Eddelbuettel

On 5 April 2018 at 05:36, Ben Goodrich wrote:
| Package: r-cran-matrix
| Version: 1.2-13-1
| Severity: normal
| 
| Hi Dirk,
| 
| When I install r-cran-matrix version 1.2-13-1 from unstable, it puts it under 
/usr/lib/R/site-library ,

I am aware. I switched to the newer/better build system dh-r, and it had a
bug that it did not recognise 'Priority: recommended' (as it was case
sensitive by oversight).  This has been fixed in a new release 20180404 (see
eg [1]) so I need to rebuild.

[1] 
http://metadata.ftp-master.debian.org/changelogs/main/d/dh-r/dh-r_20180403_changelog)

| whereas if I downgrade to version 1.2-12-1 from testing, it puts it under 
/usr/lib/R/library with the
| other recommended packages. I am not sure if this was an intentional change, 
but it breaks R CMD check
| for packages that have Matrix in the Imports line of their DESCRIPTION file. 
Specifically, if you call
| R CMD check on a package that is downstream of Matrix, then when it gets to 
examples or tests, it says:
| 
| Error: package or namespace load failed for 'rstanarm' in loadNamespace(j <- 
i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
| there is no package called 'Matrix'

That is weird and I don't understand. Still in .libPaths().
 
| I put in a print statement right before that, which outputs
| 
|   > library(testthat)
|   > print(.libPaths())
|   [1] "/tmp/RtmpKN7neI/RLIBS_8051142d41b" "/usr/lib/R/library"   
|   > library(rstanarm)
| 
| so it seems that R CMD check does not copy Matrix into /tmp/Rtmp* because it 
assumes it is already in
| /usr/lib/R/library, which is not the case anymore.

Good thinking. 
 
| Not a big deal since I have to do R CMD check on r-devel anyway.

But I'll fix. Also affects r-cran-cluster. Uploading ...

Dirk

| Thanks,
| Ben
| 
| -- System Information:
| Debian Release: buster/sid
|   APT prefers unstable
|   APT policy: (500, 'unstable'), (500, 'testing')
| Architecture: amd64 (x86_64)
| Foreign Architectures: i386
| 
| Kernel: Linux 3.17-4.towo-siduction-amd64 (SMP w/8 CPU cores; PREEMPT)
| Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE= 
(charmap=UTF-8)
| Shell: /bin/sh linked to /bin/dash
| Init: systemd (via /run/systemd/system)
| 
| Versions of packages r-cran-matrix depends on:
| ii  libatlas3-base [liblapack.so.3]3.10.3-5
| ii  libblas3 [libblas.so.3]3.7.1-4
| ii  libc6  2.27-3
| ii  libgcc11:8-20180402-1
| ii  libgfortran4   7.3.0-14
| ii  liblapack3 [liblapack.so.3]3.7.1-4
| ii  libopenblas-base [liblapack.so.3]  0.2.20+ds-4
| ii  libquadmath0   8-20180402-1
| ii  libstdc++6 8-20180402-1
| ii  r-cran-lattice 0.20-35-1+b1
| 
| r-cran-matrix recommends no packages.
| 
| r-cran-matrix suggests no packages.
| 
| -- no debconf information

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org



Bug#894887: r-cran-matrix: new version installs in different directory and breaks R CMD check

2018-04-05 Thread Ben Goodrich
Package: r-cran-matrix
Version: 1.2-13-1
Severity: normal

Hi Dirk,

When I install r-cran-matrix version 1.2-13-1 from unstable, it puts it under 
/usr/lib/R/site-library ,
whereas if I downgrade to version 1.2-12-1 from testing, it puts it under 
/usr/lib/R/library with the
other recommended packages. I am not sure if this was an intentional change, 
but it breaks R CMD check
for packages that have Matrix in the Imports line of their DESCRIPTION file. 
Specifically, if you call
R CMD check on a package that is downstream of Matrix, then when it gets to 
examples or tests, it says:

Error: package or namespace load failed for 'rstanarm' in loadNamespace(j <- 
i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called 'Matrix'

I put in a print statement right before that, which outputs

  > library(testthat)
  > print(.libPaths())
  [1] "/tmp/RtmpKN7neI/RLIBS_8051142d41b" "/usr/lib/R/library"   
  > library(rstanarm)

so it seems that R CMD check does not copy Matrix into /tmp/Rtmp* because it 
assumes it is already in
/usr/lib/R/library, which is not the case anymore.

Not a big deal since I have to do R CMD check on r-devel anyway.

Thanks,
Ben

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.17-4.towo-siduction-amd64 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE= 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages r-cran-matrix depends on:
ii  libatlas3-base [liblapack.so.3]3.10.3-5
ii  libblas3 [libblas.so.3]3.7.1-4
ii  libc6  2.27-3
ii  libgcc11:8-20180402-1
ii  libgfortran4   7.3.0-14
ii  liblapack3 [liblapack.so.3]3.7.1-4
ii  libopenblas-base [liblapack.so.3]  0.2.20+ds-4
ii  libquadmath0   8-20180402-1
ii  libstdc++6 8-20180402-1
ii  r-cran-lattice 0.20-35-1+b1

r-cran-matrix recommends no packages.

r-cran-matrix suggests no packages.

-- no debconf information