The data argument may be a function, a data frame, or a
SQLiteConnection or RODBC connection object.
When it is a function the function must take a single argument
reset. When this argument is FALSE it returns a data
frame with the next chunk of data or NULL if no more data are
available. Whenreset=TRUE it indicates that the data should be
reread from the beginning by subsequent calls. The chunks need not be
the same size or in the same order when the data are reread, but the
same data must be provided in total. The bigglm.data.frame
method gives an example of how such a function might be written,
another is in the Examples below.
The model formula must not contain any data-dependent terms, as these
will not be consistent when updated. Factors are permitted, but the
levels of the factor must be the same across all data chunks (empty
factor levels are ok). Offsets are allowed (since version 0.8).
The SQLiteConnection and RODBC methods loads only the
variables needed for the model, not the whole table. The code in the
SQLiteConnection method should work for other DBI
connections, but I do not have any of these to check it with.