Skip to content

Allow layer_predict() to pass along ... #46

Closed
@dajmcdon

Description

@dajmcdon

On the frosting branch, there's a layer_predict() function. The dots need to be converted to a list, then passed back to the predict() call in the slather method. I tried a few different implementations but couldn't get it to work.

  • In the user facing layer_predict() function, the dots must be converted as far as I can tell (not simply passed along). This is because each layer is saved into a list. The current implementation is fine here.
  • But the dots_list would then need to be evaluated/defused on line 37. I tried combinations of rlang things. I also tried using do.call() with a list of args. I couldn't make either work (and the do.call version would seem to have undesirable copy behaviour).

@brookslogan I'm assigning you since you seem to have the most facility with quosure behaviour. I suspect there's a simple fix, but it's beyond me.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions