ropensci / osfr

R interface to the Open Science Framework (OSF)
https://docs.ropensci.org/osfr
Other
143 stars 28 forks source link

osf_rm: 'check' option doesn't work #128

Closed befriendabacterium closed 4 years ago

befriendabacterium commented 4 years ago

When i enter check = F I get:

Error: The specified file is no longer available.

aaronwolen commented 4 years ago

Could you post a reproducible example? This seems to work okay for me:

proj <- osf_create_project("osfr issue 138", public = TRUE)

write.csv(mtcars, file = "mtcars.csv")
mtcars_file <- osf_upload(proj, "mtcars.csv")

osf_rm(mtcars_file, check = FALSE)
befriendabacterium commented 4 years ago

Sorry, it seems to be working now and I can't reproduce my own issue! Doh! Perhaps it was to do with check = F not check = FALSE but that doesn't make sense...hmmm

aaronwolen commented 4 years ago

No problem. I'm closing for now but feel free to reopen if you come across an example where this fails.