From c24aee7d8f0b6ff4b641c8922e6ee1dce6f5999c Mon Sep 17 00:00:00 2001 From: Thomas Bock Date: Wed, 12 Apr 2023 23:20:43 +0200 Subject: [PATCH] Prevent R warnings during patchstack-mail filtering Due to using the wrong indexing operator for a data.frame column, the warning `In xtfrm.data.frame(x) : cannot xtfrm data frames` was printed during the filtering of patchstack mails. This is fixed by using the `[[` operator instead of the `[` operator to access the column. Signed-off-by: Thomas Bock --- util-data.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util-data.R b/util-data.R index df0cb067..8e08b7a7 100644 --- a/util-data.R +++ b/util-data.R @@ -269,7 +269,7 @@ ProjectData = R6::R6Class("ProjectData", result = parallel::mclapply(thread.data, function(thread) { ## ensure that all mails within the thread are ordered correctly - thread = thread[order(thread["date"]), ] + thread = thread[order(thread[["date"]]), ] running = TRUE i = 1