Re: [Rd] readCitationFile encoding

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Thu, 31 Dec 2009 08:01:15 +0000 (GMT)

On Thu, 31 Dec 2009, Jens Elkner wrote:

> Hi,
>
> does anybody know, how to enforce a certain encoding for
> readCitationFile()? Haven't found any usable documentation for this :(

Really? From the help file in current versions of R (2.10.1 patched, R-devel)

      ˇreadCitationFile˘ make use of the ˇencoding˘ element (if any) of
      ˇmeta˘ to determine the encoding of the file.

so

readCitationFile(basecit, list(encoding="latin1"))

is probably what you are looking for. And PLEASE do use the recommended portable encoding names.

>
> E.g.:
> basecit <- system.file("CITATION", package="base")
> source(basecit, echo=TRUE, encoding="8859-1")
> readCitationFile(basecit)
>
> BTW: 'make check' is a relativ long running task and if one changes
> a source file, all checks are ran again til it gets to the code in
> question (in my case tests/Examples/utils-Ex.Rout.fail). Is there
> a shortcut to jump immediately to the utils tests?

No, but many sections can be suppressed -- see check --help and the environment variables discussed in the R Internals manual.

>
> Regards,
> jel.
> --
> Otto-von-Guericke University http://www.cs.uni-magdeburg.de/
> Department of Computer Science Geb. 29 R 027, Universitaetsplatz 2
> 39106 Magdeburg, Germany Tel: +49 391 67 12768
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley_at_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-devel_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Received on Thu 31 Dec 2009 - 08:05:28 GMT

This archive was generated by hypermail 2.2.0 : Thu 31 Dec 2009 - 12:11:17 GMT