wrat {cursr} | R Documentation |
Move cursor to specified location in the terminal screen, then print the supplied text. This function will only work in terminal, not the RStudio Console or R GUI.
wrat(yx, text, ...)
yx |
numeric vector specifying the |
text |
text to be written at |
... |
colors and attributes added to text. See |
The coordinates are given in matrix notation: (row, column)
, with the top-left corner of the screen being (1,1)
.
NULL
Other writing functions:
wrch()
,
wrkpl()
,
wrkp()
,
wr()
wrat(c(10,6), "CURSR")
wrat(c(4,1), "Hello World!", fg="red", attr=c("bf", "ul"))
mat <- rbind(c(5,2), c(10,5), c(1,19))
wrat(mat, "HI", fg="yellow")