Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress or solve warnings for when processing levels 4 + 5 #223

Open
cthunes opened this issue Apr 1, 2024 · 1 comment
Open

Suppress or solve warnings for when processing levels 4 + 5 #223

cthunes opened this issue Apr 1, 2024 · 1 comment

Comments

@cthunes
Copy link
Contributor

cthunes commented Apr 1, 2024

This error comes in a few forms (where the parameters usually change (different tcplfit2 models). Occurs in levels 4 and 5.

Error in uniroot(acgnlsobj, c(toploc, 1e+05), y = y, tp = tp, ga = ga,  : 
  f() values at end points not of opposite sign

These warnings occured when processing level 5 of aeid 759 and seem to be also caused by tcplfit2.

Warning: There were 549 warnings in `mutate()`.
The first warning was:
ℹ In argument: `df = list(...)`.
ℹ In row 55.
Caused by warning in `sqrt()`:
! NaNs produced
---
Backtrace:
     ▆
  1. ├─tcpl::tcplRun(...)
  2. │ └─tcpl:::.multProc(id = id, lvl = 5L, type = "mc", ncores = ncores)
  3. │   └─parallel::mclapply(id, proc_func, mc.cores = ncores, mc.preschedule = FALSE)
  4. │     └─base::lapply(X = X, FUN = FUN, ...)
  5. │       └─tcpl (local) FUN(X[[i]], ...)
  6. │         └─tcpl:::tcplHit2(dat, coff = cutoff)
  7. │           └─... %>% select(-conc, -resp)
  8. ├─dplyr::select(., -conc, -resp)
  9. ├─dplyr::mutate(...)
 10. └─dplyr:::mutate.data.frame(...)
ℹ Run `dplyr::last_dplyr_warnings()` to see the 548 remaining warnings.
@brown-jason
Copy link
Collaborator

This may be a tcplfit2 ticket consider adding verbose = FALSE as default and supress these messages and user can add verbose = TRUE to show all

@cthunes cthunes changed the title Suppress or solve warning for when processing level 4 Suppress or solve warnings for when processing levels 4 + 5 Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants