Re: [Rd] how to unbreak a circular package dependence (S4 class data)

2014-01-28 Thread Kasper Daniel Hansen
This is a great comment if the primary use of the data is to make the data available. It is clear that a change in the internals of the class structure requires changing the data package, and that is a clear drawback to my recommendation. I have had to do this on several occasions. One issue wit

Re: [Rd] how to unbreak a circular package dependence (S4 class data)

2014-01-28 Thread Hervé Pagès
Hi Daniel, On 01/28/2014 03:49 PM, Daniel Kelley wrote: I have an issue with a circular package dependence that prevents building/checking, and I seek advice on breaking the circle so the packages can pass the build-check tests that are required for CRAN submission. The package pair I'm worki

Re: [Rd] how to unbreak a circular package dependence (S4 class data)

2014-01-28 Thread Kasper Daniel Hansen
This question is quite common in Bioconductor because of the extensive use of S4 and because our data are often too big to stay within the size requirements on software packages (we separate packages into software and data, with size limits (5MB total size of final source tar ball) on software, but

[Rd] how to unbreak a circular package dependence (S4 class data)

2014-01-28 Thread Daniel Kelley
I have an issue with a circular package dependence that prevents building/checking, and I seek advice on breaking the circle so the packages can pass the build-check tests that are required for CRAN submission. The package pair I'm working with is slow to build, but my tests suggest the issue m

Re: [Rd] package NAMESPACE question

2014-01-28 Thread Hervé Pagès
Hi Alex, On 01/28/2014 03:32 AM, Axel Urbiz wrote: Hi, I've tried to put together a simpler example where I'm having the issue. I've built a foo package by only including a single .R file with the two functions listed below: trt and cmt. The second function calls the first. In the namespace fi

Re: [Rd] package NAMESPACE question

2014-01-28 Thread Duncan Murdoch
On 28/01/2014 2:43 PM, William Dunlap wrote: [inline below] Bill Dunlap TIBCO Software wdunlap tibco.com > -Original Message- > From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] > Sent: Tuesday, January 28, 2014 10:45 AM > To: William Dunlap; Axel Urbiz; Henrik Bengtsson > Cc: r-d

Re: [Rd] package NAMESPACE question

2014-01-28 Thread William Dunlap
[inline below] Bill Dunlap TIBCO Software wdunlap tibco.com > -Original Message- > From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] > Sent: Tuesday, January 28, 2014 10:45 AM > To: William Dunlap; Axel Urbiz; Henrik Bengtsson > Cc: r-devel > Subject: Re: [Rd] package NAMESPACE ques

Re: [Rd] package NAMESPACE question

2014-01-28 Thread Duncan Murdoch
On 28/01/2014 12:15 PM, William Dunlap wrote: You can more or less get what you want by reassigning the environment of the formula to be a child of its original environment, where you put your private functions in the new environment. For example, do not export trt and make the following change

Re: [Rd] package NAMESPACE question

2014-01-28 Thread William Dunlap
You can more or less get what you want by reassigning the environment of the formula to be a child of its original environment, where you put your private functions in the new environment. For example, do not export trt and make the following change to your R code: % diff -u foo/R/cmt.R~ foo/R

Re: [Rd] package NAMESPACE question

2014-01-28 Thread Axel Urbiz
Thanks for all your help on this Duncan. Much appreciated! Regards Axel On Tuesday, January 28, 2014, Duncan Murdoch wrote: > On 14-01-28 6:32 AM, Axel Urbiz wrote: > >> Hi, >> >> I've tried to put together a simpler example where I'm having the issue. >> >> I've built a foo package by only inc

Re: [Rd] package NAMESPACE question

2014-01-28 Thread Axel Urbiz
Hi, I've tried to put together a simpler example where I'm having the issue. I've built a foo package by only including a single .R file with the two functions listed below: trt and cmt. The second function calls the first. In the namespace file, if I only export(cmt), I get the following error m

Re: [Rd] package NAMESPACE question

2014-01-28 Thread Duncan Murdoch
On 14-01-28 6:32 AM, Axel Urbiz wrote: Hi, I've tried to put together a simpler example where I'm having the issue. I've built a foo package by only including a single .R file with the two functions listed below: trt and cmt. The second function calls the first. In the namespace file, if I only