Closed spgarbet closed 6 months ago
do.call(rbind,
lapply(
seq(as.Date(beginTime), to=Sys.Date(), by=batchInterval),
function(x) exportLogging(rcon,
beginTime=as.POSIXct(x),
endTime =as.POSIXct(x+batchInterval))
)
)
This looks to be working:
logs <- do.call(rbind,
lapply(
seq(as.Date(beginTime), to=Sys.Date(), by=batchInterval),
function(x) exportLogging(rcon, beginTime=as.POSIXct(x), endTime=as.POSIXct(x+batchInterval))
)
)
Complete and merged
exportLogging as a project grows becomes too large. It needs a
batchInterval
parameter which specifies how many days to batch the call by and it defaults to NULL. If specified calls are batched up to the current time. It will require that thebeginTime
be specified ifbatchInterval
is provided.