question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for R in data viewer

See original GitHub issue

Currently when I run the Jupyter extension linked to the R kernel (IRkernel) in VS Code Insiders, I get the following error:

View(mtcars)
ERROR: Error in View(mtcars): 'View()' not yet supported in the Jupyter R kernel

Adding data viewer support for the R kernel would allow the REditorSupport developers to adapt the Jupyter data viewer for use with the VS Code R extension and debugger. Hopefully the implementation would be similar to what has been done in the Python extension.

Related discussions:

  1. In vscode-jupyter: https://github.com/microsoft/vscode-jupyter/issues/1536
  2. In vscode-R: https://github.com/Ikuyadeu/vscode-R/issues/506
  3. In VSCode-R-Debugger: https://github.com/ManuelHentschel/VSCode-R-Debugger/issues/123

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
IanMatthewHuffcommented, Feb 2, 2021

Yeah, we are very much looking at the aspects of our tool that currently only work with python (debugging, variable view, data viewer) and looking at how to expand those out to the entire ecosystem of languages.

This probably isn’t exactly what you need. But we do actually have an extensibility point for another VSCode extension to utilize our data viewer UI. You’d have to do most of the work yourself for providing the data but you could get the look and feel of our data viewer UI with this.

https://github.com/microsoft/vscode-jupyter/blob/b368ea9326c13d6497e0f070d89d810d4ff86416/src/client/api.ts#L45 https://github.com/microsoft/vscode-jupyter/blob/b368ea9326c13d6497e0f070d89d810d4ff86416/src/client/datascience/data-viewing/types.ts#L59

We just did this to support a sister team, so we don’t guarantee support for this, but might be helpful if you or anyone from the R world is looking to implement a stopgap solution until our full support comes online.

1reaction
IanMatthewHuffcommented, Apr 6, 2021

@danielbasso Yeah, just recreating should be fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using the Data Viewer in the RStudio IDE - Posit Support
The RStudio IDE includes a data viewer that allows you to look inside data frames and other rectangular data structures. The viewer also...
Read more >
View: Invoke a Data Viewer - Rdrr.io
Invoke a spreadsheet-style data viewer on a matrix-like R object. ... End, Page Up and Page Down (where supported by X11) as well...
Read more >
ess-view-data: tidyverse data viewer support for ESS-r : r/emacs
I wrote a Emacs package ess-view-data which provide tidyverse data viewer support for ESS-r. In ess-r, call ess-view-data-print, and then ...
Read more >
R in Visual Studio Code
Install R (>= 3.4.0) for your platform. For Windows users, it is recommended to check Save version number in registry during installation so ......
Read more >
DataEditR
DataEditR is an R package built on shiny and rhandsontable that makes it easy to interactively view, enter, filter and edit data. In...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found