The R package lazytype provides addins for inserting code and running code in a different manner, and functions to allow interaction between scripts and between script and rmarkdown file.


The stable version on R CRAN is coming soon.

You can install the development version from Github with:

# install.packages("devtools")


Keep the PC awake

dont_sign_me_out(hours = 3.5) moves mouse every 5 minutes for a certain time (default 3.5 hours) and print the time elapsed in the console. It is mainly used on public PC where it signs you out for a certain period of inactivity.


LazyScript operations helps with interacting with scripts and rmarkdown files, saves time to copy and paste and provides means to arrange code in a different way.

# test.R
## ---- library ----
## ---- hello ----
print("Hello World")
script_test <- read_script("test.R", library = TRUE)
script_test %run% "hello"
#> [1] "Hello World"

read_script provides a knitr::read_chunk equivalent in script files.

copy_script_to_rmd("test.R", "test.Rmd", match_chunk = FALSE)


The package provides various addins, aiming to decrease keystrokes and clicks. A complete usage of addins please consult vignette.


This package is free and open source software, licensed under GPL-3.

FinYang/lazytype documentation built on Sept. 3, 2020, 9:32 p.m.