Skip to content

devtools::load_all() infinite recursion #2617

@sbgraves237

Description

@sbgraves237

Might someone care to revise devtools::load_all() to prevent an infinite recursion?

BACKGROUND

I accidentally pasted devtools::load_all() into an R/*.R file defining a data set,[1] as described in section 7.1.2 Documenting datasets of Wickham and Bryan: R Packages. Then when I executed devtools::load_all(), I got an infinite recursion. Then I embarrassed myself by asking [R-pkg-devel] about it. Duncan Murdoch kindly identified the problem for me.

Thanks for your work on this. It is quite valuable.

Spencer Graves

[1]

https://github.com/sbgraves237/SS4Maddison/blob/main/R/MaddisonProjectData.R

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