R Under development (unstable) (2025-02-15 r87725 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(urlshorteneR) In order to use bitly functions, you first need to authenticate. For that execute 'bitly_auth()' in R console. > # bitly_token <- bitly_auth(key = "be03aead58f23bc1aee6e1d7b7a1d99d62f0ede8", secret = "f9c6a3b18968e991e35f466e90c7d883cc176073") > # saveRDS(bitly_token, file = "tests/bitly_local_token.rds") > # > # if (interactive()) { > # setwd("~/Documents/R-package-urlshortener") > # bitly_token <- readRDS("tests/bitly_local_token.rds") > # } else { > # setwd("~/main/") > # bitly_token <- readRDS("tests/bitly_local_token.rds") > # } > # > # test_check("urlshorteneR") > > proc.time() user system elapsed 0.71 0.18 0.89