Skip to content

auto-format/auto-indent on paste not respecting native R pipes in quarto document. #13210

@ekoraytascilar

Description

@ekoraytascilar

System details:

MacBook Pro M2Max 32 Gb

Positron and OS details:

Positron Version: 2026.04.1 build 10
Code - OSS Version: 1.109.2
Commit: 5dfc924
Date: 2026-04-14T01:11:42.088Z
Electron: 39.3.0
Chromium: 142.0.7444.265
Node.js: 22.21.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 24.6.0

Session details:

R version 4.5.1 (2025-06-13)

Platform: aarch64-apple-darwin20

locale:
en_US.UTF-8||en_US.UTF-8||en_US.UTF-8||C||en_US.UTF-8||en_US.UTF-8

attached base packages:
stats, graphics, grDevices, utils, datasets, methods and base

other attached packages:
ggh4x(v.0.3.1), patchwork(v.1.3.2), glmnet(v.4.1-10), Matrix(v.1.7-3), DescTools(v.0.99.60), pander(v.0.6.6), epiR(v.2.0.89), haven(v.2.5.5), writexl(v.1.5.4), readxl(v.1.4.5), janitor(v.2.2.1), gtsummary(v.2.4.0), gt(v.1.1.0), broom(v.1.0.10), survminer(v.0.5.1), ggpubr(v.0.6.2), survival(v.3.8-3), lubridate(v.1.9.4), forcats(v.1.0.1), stringr(v.1.5.2), dplyr(v.1.1.4), purrr(v.1.1.0), readr(v.2.1.5), tidyr(v.1.3.1), tibble(v.3.3.0), ggplot2(v.4.0.0) and tidyverse(v.2.0.0)

loaded via a namespace (and not attached):
RColorBrewer(v.1.1-3), rstudioapi(v.0.17.1), shape(v.1.4.6.1), magrittr(v.2.0.4), farver(v.2.1.2), rmarkdown(v.2.30), fs(v.1.6.6), ragg(v.1.5.0), vctrs(v.0.6.5), askpass(v.1.2.1), rstatix(v.0.7.3), htmltools(v.0.5.8.1), cellranger(v.1.1.0), Formula(v.1.2-5), sass(v.0.4.10), KernSmooth(v.2.23-26), rootSolve(v.1.8.2.4), zoo(v.1.8-14), uuid(v.1.2-1), commonmark(v.2.0.0), lifecycle(v.1.0.4), iterators(v.1.0.14), pkgconfig(v.2.0.3), R6(v.2.6.1), fastmap(v.1.2.0), snakecase(v.0.11.1), digest(v.0.6.37), Exact(v.3.3), textshaping(v.1.0.4), labeling(v.0.4.3), km.ci(v.0.5-6), timechange(v.0.3.0), httr(v.1.4.7), abind(v.1.4-8), compiler(v.4.5.1), proxy(v.0.4-27), fontquiver(v.0.2.1), withr(v.3.0.2), S7(v.0.2.0), backports(v.1.5.0), carData(v.3.0-5), DBI(v.1.2.3), BiasedUrn(v.2.0.12), ggsignif(v.0.6.4), MASS(v.7.3-65), openssl(v.2.3.4), sessioninfo(v.1.2.3), classInt(v.0.4-11), ggsci(v.4.1.0), gld(v.2.6.8), tools(v.4.5.1), units(v.1.0-0), zip(v.2.3.3), glue(v.1.8.0), gridtext(v.0.1.5), grid(v.4.5.1), sf(v.1.0-21), generics(v.0.1.4), gtable(v.0.3.6), tzdb(v.0.5.0), KMsurv(v.0.1-6), class(v.7.3-23), data.table(v.1.17.8), lmom(v.3.2), hms(v.1.1.4), xml2(v.1.4.0), car(v.3.1-3), utf8(v.1.2.6), foreach(v.1.5.2), pillar(v.1.11.1), markdown(v.2.0), splines(v.4.5.1), ggtext(v.0.1.2), lattice(v.0.22-7), tidyselect(v.1.2.1), fontLiberation(v.0.1.0), knitr(v.1.50), fontBitstreamVera(v.0.1.1), gridExtra(v.2.3), litedown(v.0.7), xfun(v.0.53), expm(v.1.0-0), stringi(v.1.8.7), boot(v.1.3-31), evaluate(v.1.0.5), codetools(v.0.2-20), officer(v.0.7.3), gdtools(v.0.4.4), cli(v.3.6.5), xtable(v.1.8-4), systemfonts(v.1.3.1), survMisc(v.0.5.6), Rcpp(v.1.1.0), mvtnorm(v.1.3-3), scales(v.1.4.0), e1071(v.1.7-16), crayon(v.1.5.3), flextable(v.0.9.10) and rlang(v.1.1.6)

Describe the issue:

When code from external source is pasted, the ">" portion of some native r pipes are moved to a new line or deleted. That the issue comes from auto-format/auto-indent on paste is my guess since there should be no other apparent reason for the code to change in an unpasted area.

Steps to reproduce the issue:

  1. Copy code from Positron assistant chat
  2. Paste code into an already populated chunk

Expected or desired behavior:

Native R pipes should not break

i.e see below before pasting code below the screenshotted area

Image

see below after code is pasted below the screenshotted area

Image

Were there any error messages in the UI, Output panel, or Developer Tools console?

No apparent errors or messages related to the paste per se.

-->

Metadata

Metadata

Assignees

No one assigned

    Labels

    info neededWaiting on information

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions