[R-sig-Debian] R3.2.1: tools::testInstalledBasic("both") fails since no tests are installed by default. Confirmed?

Dirk Eddelbuettel edd at debian.org
Sun Jul 26 20:11:05 CEST 2015


On 26 July 2015 at 18:49, nospam at altfeld-im.de wrote:
| Dear R-SIG-Debian team,
| 
| I have installed R3.2.1 as described at cran.r-project.org
| on my Ubuntu 14.04 using the Ubuntu packages for R (r-base and
| r-base-dev) from the package URL
| 
| deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu trusty/
| 
| I wanted to test the installation using the R commands:
| 
|     Sys.setenv(LC_COLLATE = "C", LANGUAGE = "en")
|     library("tools")
|     testInstalledBasic("both")
| 
| "testInstalledBasic()" failed with the error message:
| 
|     Error in setwd(file.path(R.home(), "tests")) : 
|       cannot change working directory
| 
| "R.home()" results in
| 
|     [1] "/usr/lib/R"
| 
| I looked into this folder and could not find test sub folder "tests"
| where the base tests are supposed to be stored.
| 
| My questions:
| 
| 1. Can you please confirm that the "tests" sub folder is no part of the
|    packages? Otherwise I have to diagnose an installation problem on
|    my computer...
| 
| 2. What is the reason for not installing the tests (I am just curious)?
| 
| 3. If the tests are useful: How can I install them manually?
|    Since I install the binary package and do not build from the source
|    I cannot call "make install-tests" as proposed in the
|    "R Installation and Administration" in
| 
| https://cran.r-project.org/doc/manuals/R-admin.html#Testing-a-Unix_002dalike-Installation

You may need to work from sources for this.  I can look into this, time
permitting, when I next overhault / extend the Debian packaging.

Dirk

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



More information about the R-SIG-Debian mailing list