Skip to content

Error suppression #1

@JuliaS92

Description

@JuliaS92

Hi,
I am writing a pretty huge application using RGtk2 and I want to prevent errormessages produced by RGtk2-functions from being printed to the R-console, without just redirecting the stderr putput. I already tried to solve it using handleError, but in my case this only changed the function output, but the error message was still printed.

Am I doing something wrong with this code? (New error handling is enabled) It is always printing the error and the only difference in using handleError is the additional NULL printed.

App <- gtkWindow(show = TRUE)
Box <- gtkEntry()
App$add(Box)

Set <- list()
Box$setText(Set$Entry)

handleError(Box$setText(Set$Entry), FALSE)
handleError(Box$setText(Set$Entry), TRUE)

Could I please get some help solving this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions