Last chance! 50% off unlimited learning
Sale ends in
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, ...)
numeric vector specifying the (row, col)
coordinates to print at
text to be written at yx
NULL
The coordinates are given in matrix notation: (row, column)
, with the top-left corner of the screen being (1,1)
.
# NOT RUN {
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")
# }
Run the code above in your browser using DataLab