You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lastcmd<-function(){
tmp<- tempfile()
savehistory(tmp)
# If we call this function then that call will# be the last line in the history so we want the one# before that
tail(readLines(tmp), 2)[1]
}
http://stackoverflow.com/questions/18972845/get-last-top-level-command-as-a-character-string
The text was updated successfully, but these errors were encountered: