urlshorteneR: A package for shortening URLs
This is a small package I put together quickly to satisfy an immediate need: generating abbreviated URLs in R. As it happens I require this functionality in a couple of projects, so it made sense to have a package to handle the details. It’s not perfect but it does the job. The code is available from github along with vague usage information.
In essence the functionality is simple: first authenticate to shortening service (goo.gl and bitly are supported at present) then shorten or expand URLs as required. The longurl package will perform the latter function too, possibly with greater efficiency.
So, for example, with goo.gl:
And then doing the same thing with bitly: