Skip to content

Don't check path in remove_resource() #306

Description

@sannegovaert

remove_resource() uses resource(), which uses checks_path().

Checking path should not be required to delete a resource, and can even be absurd. Eg a resource.csv can be locally deleted before running remove_resource(), thus checking the path would result in an error.

A solution is to include a parameter in resource():
resource(package, resource_name, check_path = TRUE)

This would also allow developers to be more flexible, as resource() is now a public function (#303).

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