Skip to content

Overwritten S3 methods when pak is loaded before callr #254

@DavisVaughan

Description

@DavisVaughan
x <- pak::pkg_list()
x <- callr::r(function() {})
#> Registered S3 methods overwritten by 'callr':
#>   method                    from
#>   format.callr_status_error     
#>   print.callr_status_error

I imagine it has something to do with this
https://github.com/r-lib/pak/blob/580b158493e11f459c0f38a0c3eff77afc018a64/R/subprocess.R#L255-L268

And then callr unconditionally reregisters them here

callr/R/error.R

Line 148 in e3e0acf

print.callr_status_error <- function(x, trace = TRUE, class = TRUE,

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions