Skip to content
/ catfact Public

demo pkg using vcr for httr testing

License

Notifications You must be signed in to change notification settings

sckott/catfact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

catfact

catfact package

Get a random cat fact from the Cat Fact API https://catfact.ninja/


Package to demonstrate using vcr for unit test caching in an R package that uses httr.

vcr was originally built with support only for the crul package - but now also supports httr. Support for curl is in the works.

install

remotes::install_github("sckott/catfact")
library(catfact)

get a cat fact

cat_fact()
#> $fact
#> [1] "Cats eat grass to aid their digestion and to help them get rid of any fur in their stomachs."
#> 
#> $length
#> [1] 92

About

demo pkg using vcr for httr testing

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages