Skip to content

Conversation

@zeileis
Copy link
Collaborator

@zeileis zeileis commented Oct 6, 2025

Fixes #499

The .last_call of the tinyplot() generic is now determined by comparing the functions called in sys.calls() rather than their names as suggested by @FlorianSchwendinger.

This makes it compatible with usage in do.call() or when using a custom copy of the generic.

do.call(tinyplot, list(x = 1:5, y = sin(1:5)))
do.call(tinyplot_add, list(type = "h"))

myplot = tinyplot
myplot_add = tinyplot_add
myplot(x = 1:5, y = sin(1:5))
myplot_add(type = "h")
tinyplot-add

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

do.call tinyplot_add

2 participants