Skip to content

Package development ​

Package development is supported by vscode-R, R language server, and R debugger.

Commands ​

vscode-R mainly provides the mostly used package development commands:

TitleCommandR code
Build packager.builddevtools::build()
Test packager.testdevtools::test()
Check packager.checkdevtools::check()
Install packager.installdevtools::install()
Documentr.documentdevtools::document()
Load allr.loadAlldevtools::load_all()

Keyboard shortcuts could be bound to these commands. See Creating keybindings for R commands.

Development ​

The R language server loads all R documents in ./R if it detects a NAMESPACE file in the workspace root folder, which indicates that the workspace contains an R package. Therefore, all these R files are considered in the same workspace, sharing completions, definitions, references, and other workspace-level language features.

Debugging ​

The R debugger supports debugging the package code in the current workspace. See Debugging R packages for more details.

Released under the MIT License.