Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add replace = FALSE to add_resource() #227

Closed
peterdesmet opened this issue Jul 8, 2024 · 1 comment · Fixed by #231
Closed

Add replace = FALSE to add_resource() #227

peterdesmet opened this issue Jul 8, 2024 · 1 comment · Fixed by #231
Assignees
Labels
complexity:low Likely not complex to implement function:add/remove Functions add_resource(), remove_resource()
Milestone

Comments

@peterdesmet
Copy link
Member

Sometimes you want to edit a resource in place. add_resource() currently forbids that.

  • Alternative 1: have a replace = TRUE attribute in add_resource() (default FALSE)
  • Alternative 2: have a replace_resource() function

I prefer alternative 1. We will be to use this attribute/function in inbo/camtrapdp#74

@peterdesmet peterdesmet added function:add/remove Functions add_resource(), remove_resource() complexity:low Likely not complex to implement labels Jul 8, 2024
@peterdesmet peterdesmet added this to the 1.2.0 milestone Jul 8, 2024
@PietrH
Copy link
Member

PietrH commented Jul 9, 2024

I prefer replace = TRUE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity:low Likely not complex to implement function:add/remove Functions add_resource(), remove_resource()
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants