Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/raggPublic

Introduce callback when plot is updated #204

Open
@djvanderlaan

Description

@djvanderlaan

Would it be possible to introduce the option to specify a callback function inragg that is called whenever the plot is updated?

Use case: I am the author theterminalgraphics package (https://codeberg.org/djvanderlaan/terminalgraphics). To get that working I open aagg_capture device that receives the plot commands. I add a callback to R usingaddTaskCallback. That callback checks if the device has changed (the contents of that device) and dumps a new plot into the terminal when it has. I currently have an issue when the plot is updated but the contents of the plot do not change: then no change is detected and the plot is not updated.

plot(1:10)# a lot of commands# ...plot(1:10)# nothing happens as the contents of the device did not change

I imagine this could be either through aragg::register_callback function (that probably receives the device that updated) or through an additional argument toagg_capture /agg_png etc.

If time is an issue: I would be willing to dive into the code and try to make a pull request.

Metadata

Metadata

Assignees

No one assigned

    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


      [8]ページ先頭

      ©2009-2025 Movatter.jp