automatic github commit and push

Hi,

I am using R to scrape a website everyday. I am using Windows Task Manager to start the scrape algorithm daily. My q is that do you know a way to automatic Github commit and push w the new data? The best would be if the commit and push could be run from an R script.

Thank you for your answers in advance,
M

You can use git commands inside R, check system('git status'), but I am not sure about the commit message required to commit? when I tried system('git commit FILE') it opened VIM to write the commit message.

cheers
Fer

You'd have to write the message with system("git commit -m 'my messsage'") and that should suffice.