.rprofile like so:fs_auth(cKey = getOption("FigshareKey", stop("Missing Figshare consumer key")),
cSecret = getOption("FigsharePrivateKey", stop("Missing Figshare app secret")),
token = getOption("FigshareToken", stop("Missing Figshare token")),
token_secret = getOption("FigsharePrivateToken", stop("Missing Figshare Secret Token")))options(FigsharePrivateKey="Your_Key")
options(FigsharePrivateToken="Your_secret_key")
options(FigshareSecret="Your_secret_key")
options(FigshareToken="Your_secret_key") If this is not possible (assuming you are on a public
machine), then you can specify both inline. Calling
fs_auth() with the right keys will launch your
default browser and take you to Figshare.com to authorize
this application. If you are not logged in, you will
first be prompted to login with your Figshare user/pass.
Next, click accept to see a pin. At that point, copy the
pin and paste it back at the R prompt. If you assign this
to a R object, then you can use that as the first
argument in all functions that require authentication. If
you have successfully completed this step, you should
ideally save the Oauth credential object to disk
for future use. There is no need to repeat this step each
time.