I wanted to display characters on the r-console of rstudio at a certain point. However, the text is always output in the following empty line and not where it was addressed. When the output is repeated, the text is appended to the already issued characters. I want to know how to place the text exactly.
cat("\014")
(context <- rstudioapi :: getConsoleEditorContext ())
(id <- context $ id ) # send some R code to the console
(ranges <- rstudioapi::document_range(c(9,20),c(19, 20)))
rstudioapi :: insertText (ranges, text = ">*<" , id = id)