From hadley at rice.edu  Fri Aug 27 16:05:30 2010
From: hadley at rice.edu (Hadley Wickham)
Date: Fri, 27 Aug 2010 09:05:30 -0500
Subject: [Rd] NEWS and readNEWS
Message-ID: <AANLkTinT4RMtwV20=+iw2V8rMMbJqa1yNDEG2myBzS2a@mail.gmail.com>

readNEWS() states:

     Read R's ?NEWS? file or a similarly formatted one.  This is an
     experimental feature, new in R 2.4.0 and may change in several
     ways

and news() also indicates that this tool is supposed to work with
non-R news files.  However, I've not been able to get readNEWS to read
a package news file, even when following the format indicated in
news().  Looking at the code for readNEWS() it seems there are couple
of places where it assumes it's working with the main R NEWS file:

  * s.post <- " SERIES NEWS"
  * s.pre <- "^[\t ]*CHANGES IN R VERSION "

Is this a bug or is the documentation incorrect?

Hadley

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/



[Rd] NEWS and readNEWS
Hadley Wickham