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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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