Does R code completion work in VS Code? #4269
Replies: 3 comments 6 replies
-
I am having the same issue. I can run the R code in terminal from VSCode. However, the .qmd docs don't have auto-completion. Tab completion and linting would be extremely helpful. Is there a VSCode extension for this? |
Beta Was this translation helpful? Give feedback.
-
Quarto Extension uses other language extenstion for code cells https://quarto.org/docs/tools/vscode.html#code-cells So using the R extension (https://marketplace.visualstudio.com/items?itemName=REditorSupport.r) should be enough. I am also on Windows 11 and have both extension, and I correctly get the completion either while typing in chunk, or doing CTRL+Space to trigger it. |
Beta Was this translation helpful? Give feedback.
-
I am having a similar issue. The base R functions do get suggested so its not entirely broken. Objects that exist in the name space are also coming up as suggestions in the autocomplete. However, functions that exist inside of packages which have been loaded do not appear. So for example, after loading tidyverse with library(tidyverse) typing "mut" does not suggest an autocomplete to mutate. However, if I were to type "dplyr::mut" then mutate would be suggested as an autocomplete. |
Beta Was this translation helpful? Give feedback.
-
I'm running quarto with vscode and I can't seem to get any code completion for R. It works for python code.
I'm on windows 11 and I have installed the quarto and R vscode extensions. I do have code completion from the R extension in R and rmd files, just not in qmd. However, qmd documents with r code do knit and I can also execute the code within code cells. Do I need to use RStudio for R programming if I want code completion or do I have some other issue?
Beta Was this translation helpful? Give feedback.
All reactions