knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
Use the tiny.cc API to shorten URLs!
You will need to use an API Key in order to access the tiny.cc API. You will receive an API Key after signing up at tiny.cc.
Development requests are limited to 50 per day, and no more than 5 concurrent requests from a single IP address at a time.
shortenshorten with custum hashexpandexpand_batchtotal_visitstotal_visits_batchedit (not implemented in tinycc, yet)deleteget_requests_count# After creating an account at https://tiny.cc/, you can store your credentials using auth() library(tinycc) auth("your_login", "your_api_key")
library(tinycc) hash <- paste0(sample(c(LETTERS, letters, 0:9), 6, TRUE), collapse = "") hash # shorten https://ropensci.org/ shorten(longURL = "https://ropensci.org/", shortURL = hash)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.