shorten: Create an "OhBy" code for some content

Description Usage Arguments Examples

View source: R/ohby.r

Description

What is "oh by"? "oh by" is a simple primitive that you can use to condense information. It is, sort of, a combination of a pastebin-style site and a URL shortener. The real utility are the easily recognizable codes, prefixed with "0x".

Usage

1
2
shorten(content, expiration = "never", visibility = c("public", "private"),
  redirect = FALSE)

Arguments

content

up to 4096 bytes of content, optionally a URL

expiration

either "never" or a number followed by one of m h D W M Y for minute, hour, Day, Week, Month, Year.

visibility

either "public" or "private". The public codes are indexable by search engines

redirect

if content is a URL, then set this to TRUE to have it behave like a URL shortenter.

Examples

1
2
shorten("http://rud.is/b")
shorten("The quick, brown fox jumps over the lazy dog")

hrbrmstr/ohby documentation built on May 17, 2019, 5:11 p.m.