ropensci-archive / rfigshare

:no_entry: ARCHIVED :no_entry: An R Interface to 'figshare'
https://docs.ropensci.org/rfigshare
41 stars 12 forks source link

handle the mine= argument automatically #76

Closed cboettig closed 10 years ago

cboettig commented 10 years ago

A user asking for fs_details(id) doesn't want to have to use a different command, fs_details(id, mine=TRUE) when the id belongs them vs when the id is public (an API design flaw in my opinion), particularly for functions that wrap fs_details, like fs_embed_image.

Add a function that checks if the user owns the id first and intelligently sets the correct value of mine. This change can be done without breaking the package API.