Re: [R] Where is a package NEWS.Rd located?

2011-01-07 Thread Niels Richard Hansen
list Subject: Re: [R] Where is a package NEWS.Rd located? On 06/01/2011 2:19 PM, Kevin Wright wrote: Yes, exactly. But the problem is with NEWS.Rd, not NEWS. I'm not sure who you are arguing with, but if you do file a bug report, please also put together a simple reproducible example, e.g

[R] Where is a package NEWS.Rd located?

2011-01-06 Thread Kevin Wright
Hopefully a quick question. My package has a NEWS.Rd file that is not being found by news. The news function calls tools:::.build_news_db which has this line: nfile - file.path(dir, inst, NEWS.Rd) So it appears that the news function is searching for mypackage/inst/NEWS.Rd. However, Writing R

Re: [R] Where is a package NEWS.Rd located?

2011-01-06 Thread Kevin Wright
If you look at tools:::.build_news_db, the plain text NEWS file is searched for in pkg/NEWS and pkg/inst/NEWS, but NEWS.Rd in only searched for in pkg/inst/NEWS.Rd. Looks like a bug to me. I *think*. Thanks, Kevin On Thu, Jan 6, 2011 at 7:09 AM, Kevin Wright kw.s...@gmail.com wrote:

Re: [R] Where is a package NEWS.Rd located?

2011-01-06 Thread Kevin Wright
Yes, exactly. But the problem is with NEWS.Rd, not NEWS. pkg/inst/NEWS.Rd is moved to pkg/NEWS.Rd at build time, but for installed packages, news tried to load pkg/inst/NEWS.Rd. I'm going to file a bug report. Kevin On Thu, Jan 6, 2011 at 7:29 AM, Kevin Wright kw.s...@gmail.com wrote: If

Re: [R] Where is a package NEWS.Rd located?

2011-01-06 Thread Duncan Murdoch
On 06/01/2011 2:19 PM, Kevin Wright wrote: Yes, exactly. But the problem is with NEWS.Rd, not NEWS. I'm not sure who you are arguing with, but if you do file a bug report, please also put together a simple reproducible example, e.g. a small package containing NEWS.Rd in the inst directory

Re: [R] Where is a package NEWS.Rd located?

2011-01-06 Thread Liaw, Andy
, right? Andy -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Duncan Murdoch Sent: Thursday, January 06, 2011 2:30 PM To: Kevin Wright Cc: R list Subject: Re: [R] Where is a package NEWS.Rd located? On 06/01/2011 2:19 PM

Re: [R] Where is a package NEWS.Rd located?

2011-01-06 Thread Kevin Wright
shouldn't have an inst/ subdirectory, right? Andy -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Duncan Murdoch Sent: Thursday, January 06, 2011 2:30 PM To: Kevin Wright Cc: R list Subject: Re: [R] Where is a package NEWS.Rd