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).
remove_resource()usesresource(), which useschecks_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).