-
Notifications
You must be signed in to change notification settings - Fork 130
Package development
Yunuuuu edited this page Feb 9, 2022
·
5 revisions
Package development is supported by vscode-R, R language server, and R debugger.
vscode-R mainly provides the mostly used package development commands:
Title | Command | R code |
---|---|---|
Build package | r.build |
devtools::build() |
Test package | r.test |
devtools::test() |
Check package | r.check |
devtools::check() |
Install package | r.install |
devtools::install() |
Document | r.document |
devtools::document() |
Load all | r.loadAll |
devtools::load_all() |
Keyboard shortcuts could be bound to these commands. See Creating keybindings for R commands.
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.
The R debugger supports debugging the package code in the current workspace. See Debugging R packages for more details.
- Getting Started
- Installation
- Configuration
- Features
- Package development
- R Markdown
- Contributing
- FAQ