Skip to content

create() creates duplicate Authors@R fields #332

Description

@dtenenba
> library(devtools)
> x <-  'person("Bioconductor Package", "Maintainer", email = "maintainer@bioconductor.org", role=c("aut", "cre"))'
> desc <- list()
> desc[["Authors@R"]] <- x
> create("foo", desc)
Creating package foo in .
No DESCRIPTION found. Creating default:

Package: foo
Title: 
Description: 
Version: 0.1
Authors@R: # getOptions('devtools.desc.author')
Depends: R (>= 3.0.1)
License: # getOptions('devtools.desc.license')
LazyData: true
Authors@R: person("Bioconductor Package", "Maintainer", email = "maintainer@bioconductor.org", role=c("aut", "cre"))

Note that Authors@R appears twice, and the resulting package can't be built by R CMD build. This is with devtools_1.3.99.

On another topic, I think it's misleading that it says "No DESCRIPTION found. Creating default". In fact we are passing a description parameter, and it does not contain all default values.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions