Skip to content

Releases: REditorSupport/vscode-R

v2.5.3

06 Sep 13:56
Compare
Choose a tag to compare

Enhancements

  • Reload help pages on refresh. (#1188)
  • Upgrade to vscode-languageclient 8.0.2. (#1173)

Fixes

  • Remove encoding from knitting so that renderers that do not have an encoding parameter (e.g. quarto::quarto_render()) now work properly. (#1167)

Commits

v2.5.2

15 Jul 02:10
Compare
Choose a tag to compare

New Features

  • R help viewer now highlights code sections on hover and user can click the code to copy it to the clipboard, or press ctrl+click (Windows and Linux) or cmd+click (macOS) to send it to R terminal by default. A new setting r.helpPanel.clickCodeExamples is added to allow customizing the click behavior. (#1138)
  • A new command Create .lintr is added. (#1112)

Enhancements

  • R and Rmd files are added to Create: New File. (#1119)
  • Improved data viewer column resizing. (#1121)

Fixes

  • Hide environment values in R Markdown preview to prevent accidental deletion (#1117)
  • Opening and closing a list item in the workspace viewer treeview now works properly. (#1150)

Commits

v2.5.0

14 May 07:06
Compare
Choose a tag to compare

Announcement

  • vscode-R has been transferred to REditorSupport as the publisher in the VS Code Marketplace. The unique identifier has been updated to REditorSupport.r. (#690)
  • R in Visual Studio Code topic is added to the VS Code documentation.

New Features

  • A new setting r.libPaths is added to support additional library paths to be appended to .libPaths() when R background processes (R language server and help server) are launched. It could be useful for projects with renv enabled where required packages (e.g. languageserver and jsonlite) to use vscode-R are only installed in other location. For more details, checkout the wiki. (#1071, #1097, #1098)

Enhancements

  • The R package build task is separated into Build and Build Binary tasks. (#1029, thanks @Yunuuuu)
  • Hide smart knit environment variables to prevent accidental deletion. (#1060)
  • A new setting r.session.data.pageSize is added to support adjusting the page size of the data viewer. The default is now 500. (#1068)
  • The check for languageserver package installation is improved and the prompt could be disabled. (#1071)
  • The R Markdown code chunk snippet supports language choice. (#1082, thanks @jooyoungseo)
  • It will prompt instead of showing empty choice when no R Markdown templates are found. (#1089)

Fixes

  • Guard against evaluation of active bindings in the global environment. (#1038)
  • The http prefix is unnecessary and removed from several code snippets. (#1084, #1085, thanks @jooyoungseo)
  • R Markdown knit and preview scripts now use loadNamespace() instead of requireNamespace() to fail early if necessary packages are unavailable. (#1086)

Commits

v2.4.0

07 Mar 17:01
Compare
Choose a tag to compare

New Features

  • Added "R Markdown: New Draft" command to choose a template for a new R Markdown document. (#984)
  • Added Attached Namespaces and Loaded Namespaces to the workspace viewer. (#1022)

Enhancements

  • spawn is consistently used to run R scripts and commands. (#985)
  • Added a problemMatcher for testthat output from Test task. (#989, thanks @gowerc)
  • Code chunk snippets now preserve selected text. (#1001)
  • Added more useful Shiny and R Markdown snippets. (#1009, #1012, thanks @jooyoungseo).
  • Provides optional code argument to r.runSelection command for other extensions to execute interactive R code. (#1017, thanks @jjallaire)
  • Supports lambda function declaration in syntax higlighting. (#1025)

Fixes

  • Fixed code detection with mixed quotes. (#988, thanks @gowerc)
  • Fixed syntax highlighting for variables starting with function. (#992, thanks @gowerc)
  • Fixed R task definition and resolveTask. (#994)
  • Fixed auto port forwarding for httpgd plot viewer in LiveShare session. (#1026)

Commits

v2.3.8

07 Feb 23:58
Compare
Choose a tag to compare

Fixes

  • Fixes languageserver detection failure on Windows by avoiding rpath quoting. (#981)

Commits

v2.3.7

07 Feb 16:15
Compare
Choose a tag to compare

Note

  • After v2.3.4, httpgd plot viewer requires httpgd 1.2.0 or later. If the plot viewer shows 404 error, installing the latest release of httpgd should resolve the problem. (#972)

Enhancements

  • Data viewer supports Apache Arrow Table and r.session.data.rowLimit setting is added to limit the number of rows to show. (#945, thanks @eitsupi)
  • R gitignore file is updated and "R: Create gitignore" also supports multi-root workspace. (#949, thanks @eitsupi).
  • Httpgd plot viewer has a delay before refreshing to avoid redrawing too often. (#956)
  • Shell commands used in tasks use strong quoting. (#964, thanks @shrektan)
  • User will be prompted to install languageserver if the package is missing. (#965, @shrektan)
  • DCF syntax is updated to support syntax highlighting of .lintr. (#970, thanks @eitsupi)
  • Column headers show the class and type of each column in tooltips. (#974, thanks @eitsupi)
  • Extension is activated if the workspace folder contains *.{rproj,Rproj,r,R,rd,Rd,rmd,Rmd} at any level of sub-folders. (#979)

Fixes

  • Fix typo in command line arguments. (#954, thanks @achey2016)
  • R Markdown commenting uses HTML-style comments outside code blocks. (#958)
  • R Markdown rendering process gets LANG environment variable to properly handle unicode characters. (#961, thanks @shrektan)

Commits

  • 24a47c9: correcting typo on command argument (slient instead of silent) (#954) (Anne Cheylus) #954
  • 8b1cb58: update the .gitignore file for R (#949) (eitsupi) #949
  • ff977b7: Add delay before refreshing plots (#956) (Manuel Hentschel) #956
  • 9275ca1: Fix rmd comment (#958) (Manuel Hentschel) #958
  • 25b3dda: Add row limit setting of data viewer and support Apache Arrow Table (#945) (eitsupi) #945
  • 423cbd6: Bump node-fetch from 2.6.1 to 2.6.7 (#962) (dependabot[bot]) #962
  • 41ba420: set the LANG env when rendering rmarkdown (#961) (Xianying Tan) #961
  • 55d6d67: should use Strong quote for shell commands (#964) (Xianying Tan) #964
  • 00a89f9: add note about httpgd package version (#972) (eitsupi) #972
  • 097791d: update dcf syntax and add support ".lintr" file (#970) (eitsupi) #970
  • f8e29d9: prompt to install languageserver is not available (#965) (Xianying Tan) #965
  • f7b3df0: [data frame viewer] Add type of column to headerTooltip (#974) (eitsupi) #974
  • 66255d9: Upgrade ag-grid-community to 26.2.1 (#975) (Kun Ren) #975
  • 1ec6b5a: Activate extension on subfolder (#979) (Kun Ren) #979
  • a8c801a: release 2.3.7 (Kun Ren)

v2.3.6

16 Jan 03:52
Compare
Choose a tag to compare

Enhancements

  • Added raw string syntax. (#922)
  • Added support for both single and double brackets in code-server's URI template. (#934, thanks @benz0li)

Fixes

  • Fixed syntax highlighting so that variables and function parameters are highlighted more consistently. (#939)
  • R processes are now properly terminated on extension deactivation. (#941, thanks @albertosantini and @Yunuuuu)

Commits

v2.3.5

18 Dec 15:59
Compare
Choose a tag to compare

Enhancements

Fixes

  • Fixed R Markdown knit and preview without opening a workspace folder. (#914)
  • Fixed DESCRIPTION syntax highlighting for Authors@R field. (#920)
  • Fixed an issue about leaking child processes. All spawned child processes (e.g. help server, language server, R Markdown preview) are cleaned up on exit. (#918)

Commits

v2.3.4

30 Nov 15:21
Compare
Choose a tag to compare

Enhancements

Fixes

  • Fixed a Uri handling bug in Windows. (#888)
  • Fixed a bug in restarting help server when library has changed. (#893)

Commits

v2.3.3

21 Nov 14:26
Compare
Choose a tag to compare

Enhancements

  • The information of attached R session now appears in the label and the tooltip of the status bar item. (#836)
  • A new setting r.rmarkdown.knit.command is added to support customized knit command if not specified in the document. (#841, #850, thanks @xoolive)
  • A terminal profile for R is added via the new terminal API. (#851)
  • The help topics are now automatically updated when R packages are installed, removed, or upgraded. (#863)

Fixes

  • Fixed the problem with PowerShell on Windows when installing packages. (#846)
  • Fixed the handling of single quote in roxygen comments and the roxygen block is now automatically exited after two empty lines. (#847)
  • Backtick is added to the list of quote characters for syntax highlighting. (#859, thanks @jan-imbi)
  • Fixed detecting the YAML frontmatter in R Markdown documents. (#856)
  • Fixed attaching an R session with an open httpgd device that also triggers the plot viewer. (#852)
  • Fixed the chunk coloring in R Markdown preview. (#867)
  • Fixed the delimiter used in the output of the background knit process. (#868)

Commits