Questions tagged [vscode-r]
8 questions
4
votes
2 answers
Prevent R code autocomplete for "%>%" in Visual Studio Code from suggesting "%in%"
When using the R Extension for Visual Studio Code the code completion always suggests %in% for a line that ends with the magrittr pipe %>%. The final % in %>% triggers an autocomplete suggestion of %in%.
Here's what happens when writing a code…

MangoHands
- 1,141
- 9
- 11
1
vote
0 answers
Keyboard shortcut in R / radian terminal
I have a keyboard shortcut to use ALT+- to insert -> in R files, and it works.
{
"key": "alt+-",
"command": "type",
"when": "editorLangId == r || editorLangId == rmd || editorLangId == quarto && editorTextFocus",
…

Rainer
- 8,347
- 1
- 23
- 28
1
vote
0 answers
Why R code autocompletion doesn't work in VSCode even though Intellisense is there
I'm using VS code for Mac Version: 1.69.2 (Universal).
And following the instruction here, I have installed R Extension (Intellisense included?).
However the autocompletion doesn't work. For example when I type rno I expect it to show…

littleworth
- 4,781
- 6
- 42
- 76
0
votes
0 answers
Open an associated `.rds` file in an R / radian terminal by executing `readRDS("RDS_PATH_NAME")`
I recently moved from RStudio to VS Code - love it so far, especially for remote sessions!
But: I am missing the feature from R Studio to open an .rds file when the file is in the workspace. I know how I can associate the .rds file with R, but can I…

Rainer
- 8,347
- 1
- 23
- 28
0
votes
0 answers
Data not showing up in global environment in Visual Studio Code with R extension
I am using Visual Studio Code with the R extension, but I’m having trouble getting my data to show up in the global environment. When I run a script that creates a data frame, I can see the output in the console, but the data frame is not visible in…

Tabton
- 1
0
votes
0 answers
R in jupyter notebook in VS code is showing a warning with red color in the first line of every cell
I am getting the following pop-up message in every first line of a cell in R jupyter notebook in VS code
failed to run diagnostics: ! in callr subprocess.
Caused by error:
! Full file exclusions must be character vectors of length 1. items: 1 are…

tonygrey
- 71
- 5
0
votes
0 answers
In VScode-R, how to close previous plots tab, when refreshing plots using dev.list()?
I am using httpgd as the default graphic devide for R in vs code.
if I don't use dev.list(), it will open up new plots in the same tab everytime a new plot is generated.
If I use dev.list(), it will open up a separate tab for the new plot. But how…
0
votes
0 answers
when to use "run Source" versus "run Code" in vscode-R
Hi experienced R and VS code users - what's the difference between the two and when do you choose to run Source or run Code?
In a R Interactive session, it seems I can only use "run Source", but not sure why though.