Feedback - What I miss in Positron, what is really great (from a VSCode and former RStudio user) #3686
Replies: 6 comments 18 replies
-
Just saw the data viewer, pretty nice! If possible, add variable labels to the view. Here's Positron: Here's RStudio (unfortunately, no information about type and missing values) |
Beta Was this translation helpful? Give feedback.
-
A great resource for finding your new favorite color theme is https://vscodethemes.com/. Not all themes are available in Positron (they need to publish the theme extension to https://open-vsx.org), but most are and there are some great ones to choose from. |
Beta Was this translation helpful? Give feedback.
-
There's a more generic interface with two commands that can be used to execute code in any language: Here's an example shortcut you could use (add to the JSON file in the "Preference: Open Keyboard Shortcuts (JSON)" command): {
"key": "Cmd+Shift+R",
"command": "workbench.action.executeCode.console",
"when": "editorTextFocus",
"args": {
"langId": "r",
"code": "reprex::reprex_selection()",
"focus": true
}
} |
Beta Was this translation helpful? Give feedback.
-
There is a button for this in the Viewer pane, but not in the Plots pane. Shiny and Quarto app/document previews end up in the Viewer pane, but most htmlwidgets are displayed in the Plots pane. That may change to also send htmlwidgets to the Viewer pane, or Positron may decide to add the open in browser affordance to the Plots pane. |
Beta Was this translation helpful? Give feedback.
-
An option you could explore to address the lintr issue is to add "00" (or another percentage -- "alpha" value) at the end of the hex codes for the warnings, errors, and info. Since they use RGBA, you're adjusting the alpha or transparency of those squiggly lines, but your file tab name color will still show red if there's existing errors. ( |
Beta Was this translation helpful? Give feedback.
-
Regarding R highlightings, some of this is tracked in #3688 Regarding the R debugger, we are tracking this in #3681 Regarding diagnostics, we have plans to drastically improve the situation. In the meantime you can disable them if they are too distracting, see the |
Beta Was this translation helpful? Give feedback.
-
Short background: I used RStudio for quite a long time, then switched to VSCode about 1.5-2 years ago. I'm a package developer, so GitHub integration and package dev is important when I use an IDE. I only use R, so I don't care about Python, Julia, ...
I learned about Positron just yesterday, installed it and tried it out. And I'm really excited!
What I like about Positron and missed in VSCode
Context sensitive auto-completion is great. We have this in RStudio, but in VSCode, whenever I started typing a function, the suggested arguments were those from the default method. RStudio and Positron suggest arguments based on the input type, i.e. for the
.numeric()
or.data.frame()
methods, when the input to a function is numeric or data frame.The built-in console is great! Much better than the default in VSCode, and I never felt happy with Radian, and really missed the RStudio console.
Positron feels more "responsive". When searching for functions ("show all symbols"), it works pretty fast.
R integration feels better in Positron than in VSCode.
The
Testing
panel/feature is very nice! Even better than in RStudio, I think.What I like about Positron and missed in RStudio
Mostly those things that made me switch to VSCode
GitHub integration (way better than in RStudio)
More flexibility regarding editor / window / pane layouts
Extensions
Modern look, including much better colorization of bracket-pairs or color-codes.
What do I miss in Positron?
Some things that I use often in VSCode are not yet working/available in Positron, or at least I haven't found them yet. Maybe it's because I'm using Positron since only a few hours now.
Color theme
Color theme: there a hardly any nice (dark) color themes. This is not a problem for Positron, it's the same for VSCode. But I really like the default VSCode color theme,
Dark+
(Default Dark+). Can we have that color theme as well? Or at least, fix some "issues":fixed
have the same color as commands likeif
orfunction
(argument names should have different colors than functions).stats::
) has the same color like symbols/variable names (should be different).y ~ x1 + x2
, all symbols have the same colors. I think that+
etc. should have other colors thanx1
etc.iris$Species
, the$
should get a different color than the remaining names.if
is blue, butifelse
is yellow (as other functions). Not sure about this behaviour, maybeif
andifelse
should get the same color?,
,<-
,>
etc. have the same color as own variable names etc. - should be a different color.fixed = TRUE
, bothfixed
andTRUE
get the same color. I think argument name and value should get different colors.One advantage of the default Positron color theme: user-defined functions have the same color as other functions, and thus can be better identified as functions.
left: VSCode, right: Positron
Diagnostics or lintr?
Especially for package development, the built-in diagnostic is too aggressive. It's normal that you have many internal functions, which are, however, all marked as "not in scope" when diagnostics are activated. I would like to disable the diagnostics, but enable lintr like in VSCode. Is that possible? I don't want the diagnostics, but I'd like to have lintrs like this one:
Co-Pilot
I think this is not necessary to say, but the GitHub Co-pilot extension is not available. This is really a missing feature!
Viewer
I use the Viewer regularly to display HTML-tables. What I really loved in RStudio, but miss in VSCode and Positron is a button in the viewer pane to open the currently displayed HTML-file in a browser.
Debugging
If you come from VSCode, the debugging panel is a bit confusing, since you cannot install a debugger extension. I guess this feature is under development? Using
browser()
in the source helped, and the debug-panel looks great (like in VSCode). I suggest adding functionality to the debug panel (so it's less confusing how to use it) or at least clearly point out to usingbrowser()
.Key bindings for user-defined R command.
In VSCode, I had a keybinding to create a reprex:I used"command": "r.runCommand"
. Butr.runCommand
is not available in Positron. Is this available through extensions?Solution:
Data viewer
The data viewer is nice, especially with the additional column with information about the variables. If possible, add variable labels (
label
attribute) to the view, below column names, like in RStudio.Editor
If possible, add a "Compile report" button, like in RStudio.
Summary
Positron looks really great, and I would love to switch! Would be very happy if you could address the above mentioned missing points.
Beta Was this translation helpful? Give feedback.
All reactions