I am guessing this is a distribution prepared by someone else, with non-default settings for where things are installed. If you do that, there is no guarantee that you can test the installed R, as the tests do generally assume the standard layout.

If you change this test to use file.path(R.home("share"),"texmf") it is more likely to work.

Note too that R 3.0.2 is already 3 versions old, and the posting guide asked to you to update before posting.

On 23/07/2014 12:06, Richard Chandler-Mant wrote:
I have an installation of R 3.0.2 on a CentOS 6.3 distribution in /opt/R/3.0.2

In the R start-up script (/opt/R/3.0.2/bin/R) the value of R_HOME is set to 
/opt/R/3.0.2/lib/R and this is the value returned from the R.home() function 
within an R session.

According to the installation documentation 
(http://cran.r-project.org/doc/manuals/r-release/R-admin.html#Installation) the 
following statement is made about the R home directory:

"prefix/LIBnn/R or libdir/R
all the rest (libraries, on-line help system, ...). Here LIBnn is usually 'lib', but 
may be 'lib64' on some 64-bit Linux systems. This is known as the R home 
directory."

So from this I gather that my R linux installation is correct. The issue I am 
having is running some of the unit tests that are included with the core R 
application, specifically the reg-tests-1b.R file in the tests directory which 
contains the following:


## recursive listing of directories
p <- file.path(R.home(), "share","texmf") # always exists, readable lfri <- list.files(p, recursive=TRUE, 
include.dirs=TRUE) subdirs <- c("bibtex", "tex") lfnd <- setdiff(list.files(p, all.files=TRUE, no..=TRUE), 
".svn") stopifnot(!is.na(match(subdirs, lfri)), identical(subdirs, lfnd)) ## the first failed for a few days, unnoticed, in the 
development version of R

This test is failing for me because R.home() = /opt/R/3.0.2/lib/R and the 
directory /opt/R/3.0.2/lib/R/share/texmf does not exist but does exist at 
/opt/R/3.0.2/share/texmf

Is this a bug with the test or an error in my installation?

Thank you in advance for your help.

--

LEGAL NOTICE\ \ This message is intended for the use of ...{{dropped:18}}

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



--
Brian D. Ripley,                  rip...@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to