Hello mailing list,

 

I am new to R using RStudio in Windows and I just want to have repeated
tasks each day but could not find an answer to that reading a lot of intros,
scrolling through even more and reading on S.O. 

 

I connect to a database, load data, do calculation, write results to the
database and close connection. 


Can I save what I typed into the console as a script (I just figured how to
type into the Source window)? My idea is to have three scripts (if scripts
are the right way to do it): one for connection, second for calculation,
third to close connection. Would I then call them by "source(..R)" or is
there a click-button-solution?

 

I would really appreciate if someone guides me in the right direction (link,
tutorial, example would be sufficient).

 

Thanks for your help

Chris


	[[alternative HTML version deleted]]

