You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Warn when a code chunk will installs packages. #13986
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
ronblum commentedon Dec 11, 2023
@eliocamp Thank you for the suggestion! I even recall running into this when I first learned R Markdown.