Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Package development

Yunuuuu edited this page Feb 9, 2022 · 5 revisions

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

Commands

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.

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.

Clone this wiki locally

Morty Proxy This is a proxified and sanitized view of the page, visit original site.