Learn R Programming

cursr (version 0.1.0)

mv_row: Move Cursor to Row

Description

Moves cursor to the beginning of the row relative to its current location.

Usage

mv_row(n = 1L)

Arguments

n

number of rows to move. Positive values indicate the next rows; negative values indicate the previous rows

Value

NULL

Details

The user must be in a terminal to use the functionality; it will not work in RStudio or the R GUI.

See Also

Other moving functions: mv_col(), mv_to(), mv()

Examples

Run this code
# NOT RUN {
# move the cursor to the beginning of the previous line
mv_row(-1)

# }

Run the code above in your browser using DataLab