Skip to content

Commit

Permalink
Prevent R warnings during patchstack-mail filtering
Browse files Browse the repository at this point in the history
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 <bockthom@cs.uni-saarland.de>
  • Loading branch information
bockthom committed Apr 12, 2023
1 parent c3c50a5 commit c24aee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c24aee7

Please sign in to comment.