Skip to content

Refactor with_defaults() #1029

@AshesITR

Description

@AshesITR

lintr/R/zzz.R

Line 65 in b4747a3

if (inherits(x, "function") && !inherits(x, "lintr_function")) {

let's use is.function(x) instead?

f = lm
class(f) = 'boo'
inherits(f, 'function')
# [1] FALSE
is.function(f)
# [1] TRUE

Originally posted by @MichaelChirico in #1015 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions