shellcheckr allows you to run
shellcheck manually or as an
addin when editing shell
scripts in RStudio.
You can install the released version of shellcheckr from
CRAN with:
install.packages("shellcheckr")NOTE you must have shellcheck in your $PATH.
Normally you would run shellcheckr from the Addins->ShellCheck
toolbar menu item:
Tools->Modify Keyboard Shortcuts on the main menu can be used to make a keyboard shortcut for it. You can also call it manually:
library(shellcheckr)
shellcheckr('~/.bashrc') # raw JSON output
shellcheckrMarkers('~/.bashrc') # markers with wiki links
