Skip to content

CLEANUP: Export fewer functions #408

@HenrikBengtsson

Description

@HenrikBengtsson

Currently, future exports quite a few functions beyond the Future API itself. Some of them are used by backends but not really needed by uses of future per se - can they be removed from the public API?

For example, future.callr use MultiprocessFuture, which belongs more to a "protected" backend API. Maybe there's a robust way to make those available without exporting them, e.g.

MultiprocessFuture <- future::import_protected("MultiprocessFuture")

OTH, with such an approach we'll lose all the advantages that come with R CMD check, e.g. code inspection. Maybe that's ok.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions