Skip to content

translate() print method fails uninformatively when extension isn't loaded #731

Closed
@simonpcouch

Description

@simonpcouch
library(parsnip)

C5_rules() %>% translate("C5.0")
#> C5.0 Model Specification (classification)
#> 
#> Computational engine: C5.0 
#> 
#> Model fit template:
#> Error in `call2()`:
#> ! Can't create call to non-callable object

library(rules)

C5_rules() %>% translate("C5.0")
#> C5.0 Model Specification (classification)
#> 
#> Computational engine: C5.0 
#> 
#> Model fit template:
#> rules::c5_fit(x = missing_arg(), y = missing_arg(), weights = missing_arg())

Created on 2022-05-22 by the reprex package (v2.0.1)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions