Repository navigation
Open
Labels
Milestone
Description
System details
RStudio Edition : Desktop
RStudio Version : 2024.04.0+544 / 2024.04.0+497
OS Version : Windows / macOS
R Version : 4.3.2
Steps to reproduce the problem
library(ggplot2)
ggplot(data = mtcars, aes(x = ))- Try to request completion after x.
Describe the problem in detail
No ggplot2 column completions show up. The aesthetics completion work
Describe the behavior you expected
Specific ggplot2 column name completions, as it works in .R file and .qmd (source mode) #8444
Hopefully, this will be a quick fix!
The full file if useful.
---
title: "Untitled"
format: html
editor: visual
---
## Quarto
Quarto enables you to weave together content and executable code into a finished document.
To learn more about Quarto see <https://quarto.org>.
## Running Code
When you click the **Render** button a document will be generated that includes both content and the output of embedded code.
You can embed code like this:
```{r}
library(ggplot2)
ggplot(data = mtcars, aes(x = ))
```Related to the fact that document context is required to get completions for ggplot2.
rstudio/src/cpp/session/modules/SessionRCompletions.R
Lines 2991 to 2993 in bba6d24
| # get document contents | |
| document <- .rs.getSourceDocument(documentId, TRUE) | |
| contents <- strsplit(document$contents, "\n", fixed = TRUE)[[1L]] |
- I have read the guide for submitting good bug reports.
- I have installed the latest version of RStudio, and confirmed that the issue still persists.
- If I am reporting an RStudio crash, I have included a diagnostics report.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.


Activity
[-]Issue with ggplot2 specific completions in Quarto visual mode[/-][+]not getting ggplot2 specific completions in Quarto visual mode[/+][-]not getting ggplot2 specific completions in Quarto visual mode[/-][+]not getting ggplot2 column completions in Quarto visual mode[/+]jthomasmock commentedon Mar 11, 2024
Thanks @olivroy - we have a few different auto-complete and visual mode items we want to address, putting it into one of those epics to be looked at in future.