Investigate level 5 mutate() processing error
Closed this issue · 0 comments
Processing using the tcpl dev/tcplfit2 dev branch fails after writing level 4. Row 1 appears to be DMSO, so could be related to how tcplfit2 parameters are listed/unlisted.
tcplRun(id = 3088, type = "mc", slvl = 4L, elvl = 6L, mc.cores=40)
Loaded L3 AEID3088 (13384 rows; 0.97 secs)
Processed L4 AEID3088 (351 rows; 80.24 secs)
Writing level 4 data for 1 ids...
Completed delete cascade for 1 ids (1.17 secs)
Writing level 4 complete. (273.93 secs)
Loaded L4 AEID3088 (351 rows; 0.75 secs)
Error inmutate()
:
ℹ In argument:df = list(...)
.
ℹ In row 1.
Caused by error:
! arguments imply differing number of rows: 1, 0
Runrlang::last_trace()
to see where the error occurred.
rlang::last_trace()
<error/dplyr:::mutate_error>
Error inmutate()
:
ℹ In argument:df = list(...)
.
ℹ In row 1.
Caused by error:
! arguments imply differing number of rows: 1, 0
Backtrace:
- ├─tcpl::tcplRun(id = 3088, type = "mc", slvl = 4L, elvl = 6L, mc.cores = 40)
- │ └─tcpl:::.multProc(id = id, lvl = 5L, type = "mc", ncores = ncores)
- │ └─parallel::mclapply(id, proc_func, mc.cores = ncores, mc.preschedule = FALSE)
- │ └─base::lapply(X = X, FUN = FUN, ...)
- │ └─tcpl (local) FUN(X[[i]], ...)
- │ └─tcpl:::tcplHit2(dat, coff = cutoff)
- │ └─... %>% select(-conc, -resp)
- ├─dplyr::select(., -conc, -resp)
- ├─dplyr::mutate(...)
- ├─dplyr:::mutate.data.frame(...)
- │ └─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()
- └─tcplfit2::tcplhit2_core(...)
- ├─base::as.data.frame(c(identifiers, mget(name.list)), stringsAsFactors = FALSE)
- └─base::as.data.frame.list(c(identifiers, mget(name.list)), stringsAsFactors = FALSE)
-
├─base::do.call(data.frame, c(x, alis))
-
└─base (local) `<fn>`(...)
-
└─base::stop(...)
Run rlang::last_trace(drop = FALSE) to see 3 hidden frames.
rlang::last_trace(drop=FALSE)
<error/dplyr:::mutate_error>
Error inmutate()
:
ℹ In argument:df = list(...)
.
ℹ In row 1.
Caused by error:
! arguments imply differing number of rows: 1, 0
Backtrace:
- ├─tcpl::tcplRun(id = 3088, type = "mc", slvl = 4L, elvl = 6L, mc.cores = 40)
- │ └─tcpl:::.multProc(id = id, lvl = 5L, type = "mc", ncores = ncores)
- │ └─parallel::mclapply(id, proc_func, mc.cores = ncores, mc.preschedule = FALSE)
- │ └─base::lapply(X = X, FUN = FUN, ...)
- │ └─tcpl (local) FUN(X[[i]], ...)
- │ └─tcpl:::tcplHit2(dat, coff = cutoff)
- │ └─... %>% select(-conc, -resp)
- ├─dplyr::select(., -conc, -resp)
- ├─dplyr::mutate(...)
- ├─dplyr:::mutate.data.frame(...)
- │ └─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()
- ├─tcplfit2::tcplhit2_core(...)
- │ ├─base::as.data.frame(c(identifiers, mget(name.list)), stringsAsFactors = FALSE)
- │ └─base::as.data.frame.list(c(identifiers, mget(name.list)), stringsAsFactors = FALSE)
- │ ├─base::do.call(data.frame, c(x, alis))
- │ └─base (local)
<fn>
(...) - │ └─base::stop(...)
- └─base::.handleSimpleError(...)
- └─dplyr (local) h(simpleError(msg, call))
-
└─rlang::abort(message, class = error_class, parent = parent, call = error_call)