[Rd] CRAN build/checks: Dependencies on non-CRAN packages?

2009-06-07 Thread Henrik Bengtsson
Hi,

how is the CRAN build/check system dealing with dependencies on
non-CRAN packages?  Are there external repositories that are dealt
with in special ways, e.g. Bioconductor and Omegahat?  Is this
documented somewhere?

The most recent note on this that I could locate is "[Rd] CRAN,
Bioconductor and ctv package dependency questions", Kurt Hornik, Sept
8, 2005; https://stat.ethz.ch/pipermail/r-devel/2005-September/034547.html.
 Does the comments in that thread still reflect how CRAN works?

Thanks

Henrik

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Suggestion: Dimension-sensitive attributes

2009-06-07 Thread Henrik Bengtsson
Hi,

maybe this has been suggested before, but would it be possible,
without not breaking too much existing code, to add other "dimension
vector attributes" in addition to 'dimnames'?  These attributes would
then be subsetted just like dimnames.

Something like this:

> x <- array(1:30, dim=c(2,3,5))
> dimnames(x) <- list(c("a", "b"), c("a1", "a2", "a3"), NULL);
> dimattr(x, "misc") <- list(1:2, list(x=1:5, y=letters[1:8], z=NA), 
> letters[1:5]);

> y <- x[,1:2,2:3]
> str(dimnames(y))
List of 3
 $ : chr [1:2] "a" "b"
 $ : chr [1:2] "a1" "a2"
 $ : NULL
> str(dimattr(x, "misc"))
List of 3
 $ : int [1:2] 1 2
 $ :List of 2
  ..$ x: int [1:5] 1 2 3 4 5
  ..$ y: chr [1:8] "a" "b" "c" "d" ...
 $ : chr [1:2] "b" "c"

 I can imagine this needs to be added in several places and functions
such as is.vector() needs to be updated etc.  It is not a quick
migration, but is it something worth considering for the future?

/Henrik

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] CRAN build/checks: Dependencies on non-CRAN packages?

2009-06-07 Thread Kurt Hornik
> Henrik Bengtsson writes:

> Hi,
> how is the CRAN build/check system dealing with dependencies on
> non-CRAN packages?  Are there external repositories that are dealt
> with in special ways, e.g. Bioconductor and Omegahat?  Is this
> documented somewhere?

> The most recent note on this that I could locate is "[Rd] CRAN,
> Bioconductor and ctv package dependency questions", Kurt Hornik, Sept
> 8, 2005;
> https://stat.ethz.ch/pipermail/r-devel/2005-September/034547.html.
> Does the comments in that thread still reflect how CRAN works?

Not quite.  No more special casing of BioC or Ohat dependencies: they
simply "work", and packages with such dependencies can fully be checked.

-k

> Thanks

> Henrik

> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel