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:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.