Skip to content

Instantly share code, notes, and snippets.

@chrisvoncsefalvay
Created June 17, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisvoncsefalvay/1c4856c59db229c0681f to your computer and use it in GitHub Desktop.
Save chrisvoncsefalvay/1c4856c59db229c0681f to your computer and use it in GitHub Desktop.
SelfCommit
# Commits self on sourcing/execution
# Worth appending to the end of some models...
execution_time <- format(Sys.time(), "%d%H%M%b%Y")
commit_string <- paste("Model family RF-1BB19C-", execution_time, " generated", sep="")
commit_cmd <- paste('git add --all && git commit -m "', commit_string, '" && git push origin master', sep="")
system(commit_cmd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment