Skip to content

Can 'docopt' be installed when this package is installed? #88

@DaveParr

Description

@DaveParr

Thanks, this is actually just what I was looking for.

Ran into a small bump on install:

I ran:

remotes::install_github("lorenzwalthert/precommit")

then added this to a pre-existing .pre-commit-config.yaml (I'm actually using this to extend a project that has both R and Python and is already also using pre-commit)

-   repo: https://github.com/lorenzwalthert/precommit
    rev: v0.0.0.9027
    hooks: 
    -   id: style-files

Which on run of pre-commit from the terminal gave:

style-files..............................................................Failed
hookid: style-files

Error in loadNamespace(name) : there is no package called ‘docopt’

I was easily able to correct for this after running install.packages("docopt"), but is it possible to add this to the imports or similar so it's already sorted? but it appears it's already in the imports section. Maybe it needs to be in depends?

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