You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
boB Rudis 5c6dd05249
2 weeks ago
R cran check 2 weeks ago
inst/tinytest README/tinytest 2 weeks ago
man cran check 2 weeks ago
tests README/tinytest 2 weeks ago
.Rbuildignore rbuildignore 3 years ago
.gitignore Initial commit 5 years ago
.travis.yml passes CRAN checks 3 years ago initial commit 5 years ago
DESCRIPTION cran check 2 weeks ago
LICENSE LICENSE yaer 2 weeks ago
NAMESPACE removed purrr/dplyr deps & cran preflight check 1 year ago README/tinytest 2 weeks ago
README.Rmd cran check 2 weeks ago LICENSE yaer 2 weeks ago README/tinytest 2 weeks ago
longurl.Rproj fix for linkedin issue 2 years ago
longurl.png logo! 5 years ago

Signedby Linux buildStatus CoverageStatus cranchecks CRANstatus Minimal RVersion License


Expand Short ‘URLs’


Tools are provided to expand vectors of short URLs into long ‘URLs’. No ‘API’ services are used, which may mean that this operates more slowly than ‘API’ services do (since they usually cache results of expansions that every user of the service requests). You can setup your own caching layer with the ‘memoise’ package if you wish to have a speedup during single sessions or add larger dependencies, such as ‘Redis’, to gain a longer-term performance boost at the expense of added complexity.

What’s Inside The Tin

The following functions are implemented:

  • expand_urls: Expand a vector of (short) URLs using


install.packages("longurl", repos = c("", ""))
# or
# or
# or
# or

NOTE: To use the ‘remotes’ install options you will need to have the {remotes} package installed.



# current version
## [1] '0.3.3'
  "qrp://not a valid url/"
) -> test_urls

expand_urls(test_urls) %>% 
  dplyr::select(orig_url, status_code, expanded_url) %>% 
orig_url status_code expanded_url 200 404 200 200 200 404
qrp://not a valid url/ NA NA

longurl Metrics

Lang # Files (%) LoC (%) Blank lines (%) # Lines (%)
R 4 0.8 110 0.84 20 0.54 51 0.65
Rmd 1 0.2 21 0.16 17 0.46 27 0.35

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.