All along I was doing well with my RStudio version of 2022, writing my RMarkdown Code and compiling without issues. My problem started after I updated this version to be able to compile Quarto .qmd files
. Since then my rStudio doesn’t run my code without errors. I have uninstalled RStudio and re-installed it, but the problem remains.
Error in ggplot2::scale_color_gradientn()
:
! breaks
and labels
have different lengths.
Backtrace:
- rmarkdown::render(…)
- knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
- knitr:::process_file(text, output)
- knitr:::process_group.block(group)
- knitr:::call_block(x)
… - ggplot2 (local) extract_key(…)
- Guide$extract_key(scale, aesthetic, …)
- ggplot2 (local) extract_key(…)
- scale$get_labels(breaks)
- ggplot2 (local) get_labels(…, self = self)