angelovangel / tidydrc

tidy modelling of dose-response relationships with the drc package
MIT License
4 stars 2 forks source link

Warning: Recycling array of length 1 in array-vector arithmetic is deprecated #2

Open mervebduman opened 1 year ago

mervebduman commented 1 year ago

Hi, first of all thank you for this package!

I created the issue because when I run the command below, I get the following warning. I guess that could be easily solved with replacing as.vector() with c().

tidydrc_model(response = efficacy, dose = concentration, data=compounddata, model=LL.4(fixed=c(NA,0,1,NA), names = c("Slope", "Lower Limit", "Upper Limit", "ED50")), robust="mean")
Warning message:
There were 180 warnings in `dplyr::mutate()`.
The first warning was:
ℹ In argument: `pred = purrr::map(drmod, predict.fun)`.
ℹ In group 1: `robust = "mean"`.
Caused by warning in `(tquan * sqrt(varVal + sumObjRV)) * c(-1, 1)`:
! Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.