automatic github commit and push


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,

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.


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

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.