Nothing
role
is validatedCode
update_role_requirements(rec, 1)
Condition
Error in `update_role_requirements()`:
! Can't convert `role` <double> to <character>.
Code
update_role_requirements(rec, c("x", "y"))
Condition
Error in `update_role_requirements()`:
! `role` must have size 1, not size 2.
Code
update_role_requirements(rec, "id", bake = FALSE)
Condition
Error in `update_role_requirements()`:
! `role` must be a preexisting role in the recipe.
i "id" is not a preexisting role.
Code
update_role_requirements(rec, "predictor", bake = FALSE)
Condition
Error in `update_role_requirements()`:
! Can't update the `bake` requirement of the "predictor" role.
i The "predictor" role is always required at `bake()` time.
Code
update_role_requirements(rec, "outcome", bake = FALSE)
Condition
Error in `update_role_requirements()`:
! Can't update the `bake` requirement of the "outcome" role.
i The "outcome" role is never required at `bake()` time.
bake
requirements after preppingCode
bake(rec, df)
Condition
Error in `bake()`:
! The following required columns are missing from `new_data`: "x".
i These columns have one of the following roles, which are required at `bake()` time: "id".
i If these roles are not required at `bake()` time, use `update_role_requirements(role = "your_role", bake = FALSE)`.
Code
bake(rec, df)
Condition
Error in `bake()`:
! The following required columns are missing from `new_data`: "x", "z", "w".
i These columns have one of the following roles, which are required at `bake()` time: "predictor".
Code
bake(rec, df)
Condition
Error in `bake()`:
! The following required columns are missing from `new_data`: "w".
i These columns have one of the following roles, which are required at `bake()` time: "case_weights".
i If these roles are not required at `bake()` time, use `update_role_requirements(role = "your_role", bake = FALSE)`.
Code
bake(rec, df)
Condition
Error in `bake()`:
! The following required columns are missing from `new_data`: "x", "z".
i These columns have one of the following roles, which are required at `bake()` time: "id".
i If these roles are not required at `bake()` time, use `update_role_requirements(role = "your_role", bake = FALSE)`.
Code
bake(rec, df)
Condition
Error in `bake()`:
! The following required columns are missing from `new_data`: "x", "z".
i These columns have one of the following roles, which are required at `bake()` time: "NA".
i If these roles are not required at `bake()` time, use `update_role_requirements(role = "your_role", bake = FALSE)`.
requirements
Code
bake(rec, df)
Condition
Error in `bake()`:
! The following required columns are missing from `new_data`: "x".
i These columns have one of the following roles, which are required at `bake()` time: "predictor".
requirements$bake
Code
bake(rec, df)
Condition
Error in `bake()`:
! The following required columns are missing from `new_data`: "x".
i These columns have one of the following roles, which are required at `bake()` time: "predictor".
Code
bake(rec, df)
Condition
Error in `bake()`:
! The following required columns are missing from `new_data`: "x".
i These columns have one of the following roles, which are required at `bake()` time: "id".
i If these roles are not required at `bake()` time, use `update_role_requirements(role = "your_role", bake = FALSE)`.
bake
is validatedCode
update_role_requirements(rec, "id", bake = 1)
Condition
Error in `update_role_requirements()`:
! `bake` must be a single `TRUE` or `FALSE`.
Code
update_role_requirements(rec, "id", bake = c(TRUE, FALSE))
Condition
Error in `update_role_requirements()`:
! `bake` must be a single `TRUE` or `FALSE`.
Code
update_role_requirements(rec, "id", bake = NA)
Condition
Error in `update_role_requirements()`:
! `bake` must be a single `TRUE` or `FALSE`.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.