Bug in upsetpq(datafungimini, fact = "Height", widthratio = 0.2, taxafill = "Class" )…
- User
Bug in upset_pq(data_fungi_mini, fact = "Height", width_ratio = 0.2, taxa_fill = "Class" )
Error in
arrange(): ℹ In argument:..1 = .. Caused by error: ! object '.' not found Hide Traceback Fix Explain ▆- ├─MiscMetabar::upset_pq(...)
- │ ├─dplyr::arrange(...)
- │ └─dplyr:::arrange.data.frame(...)
- │ └─dplyr:::arrange_rows(.data, dots = dots, locale = .locale)
- │ ├─dplyr::mutate(data,
:=("{name}", !!dot), .keep = "none") - │ └─dplyr:::mutate.data.frame(data,
:=("{name}", !!dot), .keep = "none") - │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
- │ ├─base::withCallingHandlers(...)
- │ └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
- │ └─mask$eval_all_mutate(quo)
- │ └─dplyr (local) eval()
- └─base::.handleSimpleError(
<fn>, "object '.' not found", base::quote(NULL)) - └─dplyr (local) h(simpleError(msg, call))
-
code
└─rlang
Assistant
The bug is on line 4049 and 4147 in
plot_functions.R—arrange(., desc(Abundance))uses magrittr's.placeholder, but with the base pipe|>,.is not defined. Let me look at theupset_pqfunction more closely.Assistant
The fix is to remove the
.fromarrange(., desc(Abundance))since the base pipe|>doesn't use.as a placeholder. Let me also check line 4147.Assistant
Both occurrences have the same issue. Fix both:
Assistant
The bug:
arrange(., desc(Abundance))uses.as a magrittr-style placeholder, but the code uses the base pipe|>which doesn't support.. Removing the.argument fixes both occurrences (lines 4049 and 4147 inupset_pqandupset_test_pq).