@@ -300,7 +300,7 @@ robyn_refresh <- function(robyn_object,
300300 OutputCollectRF $ selectID <- selectID
301301 message(
302302 " Selected model ID: " , selectID , " for refresh model nr." ,
303- refreshCounter , " based on the smallest combined error of NRMSE & DECOMP.RSSD"
303+ refreshCounter , " based on the smallest combined error of NRMSE & DECOMP.RSSD\n "
304304 )
305305
306306 OutputCollectRF $ resultHypParam [, bestModRF : = solID == selectID ]
@@ -334,37 +334,39 @@ robyn_refresh <- function(robyn_object,
334334 OutputCollectRF $ mediaVecCollect [
335335 bestModRF == TRUE & ds > = InputCollectRF $ refreshAddedStart &
336336 ds < = refreshEnd
337- ][, refreshStatus : = refreshCounter ]
337+ ][, ' := ' ( refreshStatus = refreshCounter , ds = as.IDate( ds )) ]
338338 )
339339 mediaVecReport <- mediaVecReport [order(type , ds , refreshStatus )]
340340 xDecompVecReport <- rbind(
341341 listOutputPrev $ xDecompVecCollect [bestModRF == TRUE ],
342342 OutputCollectRF $ xDecompVecCollect [
343343 bestModRF == TRUE & ds > = InputCollectRF $ refreshAddedStart &
344344 ds < = refreshEnd
345- ][, refreshStatus : = refreshCounter ]
345+ ][, ' := ' ( refreshStatus = refreshCounter , ds = as.IDate( ds )) ]
346346 )
347347 } else {
348- resultHypParamReport <- rbind(listReportPrev $ resultHypParamReport , OutputCollectRF $ resultHypParam [
349- bestModRF == TRUE
350- ][, refreshStatus : = refreshCounter ])
351- xDecompAggReport <- rbind(listReportPrev $ xDecompAggReport , OutputCollectRF $ xDecompAgg [
352- bestModRF == TRUE
353- ][, refreshStatus : = refreshCounter ])
348+ resultHypParamReport <- rbind(
349+ listReportPrev $ resultHypParamReport ,
350+ OutputCollectRF $ resultHypParam [bestModRF == TRUE ][
351+ , refreshStatus : = refreshCounter ])
352+ xDecompAggReport <- rbind(
353+ listReportPrev $ xDecompAggReport ,
354+ OutputCollectRF $ xDecompAgg [bestModRF == TRUE ][
355+ , refreshStatus : = refreshCounter ])
354356 mediaVecReport <- rbind(
355357 listReportPrev $ mediaVecReport ,
356358 OutputCollectRF $ mediaVecCollect [
357359 bestModRF == TRUE & ds > = InputCollectRF $ refreshAddedStart &
358360 ds < = refreshEnd
359- ][, refreshStatus : = refreshCounter ]
361+ ][, ' := ' ( refreshStatus = refreshCounter , ds = as.IDate( ds )) ]
360362 )
361363 mediaVecReport <- mediaVecReport [order(type , ds , refreshStatus )]
362364 xDecompVecReport <- rbind(
363365 listReportPrev $ xDecompVecReport ,
364366 OutputCollectRF $ xDecompVecCollect [
365367 bestModRF == TRUE & ds > = InputCollectRF $ refreshAddedStart &
366368 ds < = refreshEnd
367- ][, refreshStatus : = refreshCounter ]
369+ ][, ' := ' ( refreshStatus = refreshCounter , ds = as.IDate( ds )) ]
368370 )
369371 }
370372
0 commit comments