Simulates typing out the content of an R script file, line by line,
character by character, to create an animation effect for live coding
presentations or educational demonstrations.
Usage
typeR(file, delay = 0.05)
Arguments
- file
Path to the R script file to simulate typing.
- delay
The delay (in seconds) between typing each character (default: 0.05).
Examples
# Simulate typing of a script
# typeR("example_script.R", delay = 0.1)