Skip to content

use_readme_rmd() does not create pre-commit hook if README.Rmd is not overwritten #2035

Closed as not planned
@wacfeld

Description

If use_readme_rmd() is run in a project where README.Rmd already exists, it asks the user if they want to overwrite it with a template. If they answer no, the git pre-commit hook in ./.git/hooks/pre-commit is not created.

To work around this I had to answer "yes" to overwriting and then run git restore README.Rmd which is not ideal.

Activity

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

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