Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.25 KB

README.md

File metadata and controls

45 lines (31 loc) · 1.25 KB

shellcheckr

Lifecycle: experimental R build status

shellcheckr allows you to run shellcheck manually or as an addin when editing shell scripts in RStudio.

Installation

You can install the released version of shellcheckr from CRAN with:

install.packages("shellcheckr")

NOTE you must have shellcheck in your $PATH.

Example

Normally you would run shellcheckr from the Addins->ShellCheck toolbar menu item:

Addin menu item Markers

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