Skip to content

att_amend_desc() incorrectly forces rmarkdown in Suggests for Quarto vignettes #131

@abichat

Description

@abichat

When using attachment::att_amend_desc() with a Quarto vignette (.qmd), the function ignores the file extension, and automatically adds {rmarkdown} and removes {quarto} to/from Suggests, even when the vignette clearly uses Quarto.

> attachment::att_amend_desc()
Documentation parameters were restored from attachment config file.
Updating test.att.quarto documentation
ℹ Loading test.att.quarto
ℹ Loading test.att.quarto
[-] 1 package(s) removed: quarto.
[+] 1 package(s) added: rmarkdown.

Fortunately, there is a workaround via the config file:

extra.suggests: quarto
pkg_ignore: rmarkdown

Should it be possible for att_amend_desc() to detect .qmd vignettes and avoid adding {rmarkdown} and removing {quarto} in such cases?

Thanks for considering this issue, and for providing this function, which is really helpful!

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