Skip to content

Collate directive no longer updated #29

@bluewomble

Description

@bluewomble

It seems that the collate directive isn't written out to the DESCRIPTION file in roxygen3... is that the intended behaviour?

If I create an empty package with the following two R files in it:

z.R

 #' @export
 setClass('Z', representation(value = 'vector'))

foo.R

#' @include z.R
NULL

#' @export
setGeneric('foo', function(x) standardGeneric('foo'))

#' @export
setMethod('foo', signature(x = 'ANY'), function(x)
  cat("foo#ANY\n"))

#' @export
setMethod('foo', signature(x = 'Z'), function(x)
  cat("foo#Z\n"))

And then run roxygen3 on it:

library(devtools)
load_all('path/to/roxygen3')
roxygenise('.')

I get this output from roxygen:

Loading test
in method for ‘foo’ with signature ‘x="Z"’: no definition for class “Z”
Writing NAMESPACE

but the DESCRIPTION file is not written. I seem to remember reading something saying that you'd switched off writing the collate field if it wasn't necessary (i.e. alphabetical loading of the files was sufficient), but in this case it is... is that right? Is it possible that adding that feature has switched off writing out the collate directive in all cases?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions