Created
October 15, 2014 19:45
-
-
Save baptiste/b4c1dcaaff53b8c1f625 to your computer and use it in GitHub Desktop.
ask.r
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ask = function(msg){ | |
h <- paste(capture.output(help(msg)), collapse="") | |
print(h) | |
if(nchar(msg) < 20){ | |
m <- paste0(stringr::str_extract_all(h,"\\?")[[1]], collapse="") | |
Recall(m) | |
} | |
} | |
ask("???") |
Author
baptiste
commented
Oct 15, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment