Learn R Programming

rMouse (version 0.1)

type: Type keys

Description

Type keyboard input by sending key press events.

Usage

type(string, failSafe = TRUE)

Arguments

string

String to be typed.

failSafe

Logical flag to allow for emergency stops. Default is TRUE.

See Also

specialKey, delay

Examples

Run this code

type("This is a sentence. Hello.")  # types to R console
type("Hello World!")                # throws an error due to special character

Run the code above in your browser using DataLab