The httr package can cache authentication. See Token for
details
If both access_token and access_secret are set (i.e. not NULL),
these will be supplied directly to the OAuth authentication instead of the browser
based authentication dance one would normally experience. This requires you to already
know the access tokens for your Twitter app. The usefuleness of this feature is primarily
in a headless environment where a web browser is not available.