Skip to content

dplyr::select namespace in int_conformal_quantile() #198

Description

@vincentarelbundock

Thanks for the great package!

dplyr:: should probably be specified explicitly (or @importFrom) on this line:

https://github.com/tidymodels/probably/blob/main/R/conformal_infer_quantile.R#L155

library(probably)
set.seed(48103)
idx = sample(c("train", "calibration", "test"), nrow(iris), replace = TRUE)
dat = split(iris, idx)

lm_spec <- parsnip::linear_reg() |>
    parsnip::set_mode("regression") |>
    parsnip::set_engine("lm")
lm_wflow <- workflows::workflow() |>
    workflows::add_model(lm_spec) |>
    workflows::add_formula(Sepal.Length ~ .)
lm_fit <- workflows::fit(lm_wflow, data = dat$train)
conf_int <- int_conformal_quantile(
    lm_fit,
    train_data = dat$train,
    cal_data = dat$calibration,
    level = 0.8,
    nthreads = 1
)
Error in select(train_data, -dplyr::all_of(y_name)): could not find function "select"

Metadata

Metadata

Assignees

No one assigned

    Labels

    upkeepmaintenance, infrastructure, and similar

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions