Using the packages RMySQL and dbConnect, I have a program that pulls tables from my Company's MySQL database. I'm an intern here leaving in a few weeks, and need to make my code robust for the guy that will be running it weekly once I'm gone (I don't want it to break on him / he will have issues debugging without me) - one of the things I'm worried about is the size of the queries, and whether or not R will always be able to handle / fit the size of the data pulled in the query. Currently, the code involves running a 10 - 30 minute query that results in a dataframe with X rows and Y columns.
Is there anyway to check (1) how much space in memory this dataframe is taking up, (2) how big this dataframe could become before R has an issue with it (other than by brute force testing the query with a very large pull until it's too big)?
Thanks,