Skip to content

Set minimum version in use_package() #386

Closed

Description

@strboul

I mostly require to have package version next to the package name in the DESCRIPTION file. An additional argument such as add.version to the function would be quite useful. For example:

usethis::use_package(package = "dplyr", type = "Imports", add.version = TRUE)

Then, it will be adding 'dplyr' to Imports field in DESCRIPTION:

Imports: 
    dplyr (>= 0.7.5)

Activity

  1. hadley commented on Nov 24, 2018

    @hadley
    Member

    I suggest we call this min_version and accept either TRUE (to use the currently installed version) or a string.

  2. hadley commented on Nov 24, 2018

    @hadley
    Member

    Related to #498

  3. changed the title [-]use_package() can add package version[/-] [+]Set minimum version in use_package()[/+] on Nov 25, 2018
  4. hadley commented on Nov 30, 2018

    @hadley
    Member

    Was fixed in #512

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions