Skip to content

Warn when a code chunk will installs packages.  #13986

Open

Description

@eliocamp

This comes from seeing a lot of students leaving install.packages() statements in code chunks, which then leads to all sort of problems both for them and for me when I need to grate their assignments. But it also could apply to other users who might leave installation statements by mistake.

So, since installing packages every time you knit a document is almost always not what users want, it might be wise to add a small static code analysis warning to that line of code suggesting.

Activity

  1. added
    new
    on Nov 23, 2023
  2. added and removed
    new
    on Nov 27, 2023
  3. added this to the Product Backlog milestone on Dec 11, 2023
  4. ronblum commented on Dec 11, 2023

    @ronblum
    Contributor

    @eliocamp Thank you for the suggestion! I even recall running into this when I first learned R Markdown.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions