README.md

dang

For-fun R and SFW implementation of nvbn/thefuck using grizzly NSE.

Mistyped a command? No problem! Call dang with a single unnamed argument to rerun the last command with a new function but the old arguments.

pritn("Hello world!")
# Error: could not find function "pritn"
dang(print)
# [1] "Hello world!"

Called a command with the wrong argument? No problem! Call dang with one or more named arguments to replace or inject them into the last command.

sample(letters, size = 5)
dang(size = 26, replace = TRUE)

Definitely this:

GitHub Logo



DexGroves/dang documentation built on May 6, 2019, 2:12 p.m.