jeroen / mongolite

Fast and Simple MongoDB Client for R
https://jeroen.github.io/mongolite/
287 stars 65 forks source link

GridFS removes by name, the doc says by id #186

Open rudolf-bauer opened 4 years ago

rudolf-bauer commented 4 years ago

If I want to remove an existing file in gridFS, I can use mb$remove. However, the documentation is wrong. It says:

Same for download() and remove(): # Remove a file by id mb$remove(id)

https://jeroen.github.io/mongolite/gridfs.html

According to the code, it removes by name: https://github.com/jeroen/mongolite/blob/master/R/gridfs.R#L132

baderd commented 10 months ago

This confused me too. More examples in the documentation would be great!