Postagens de Rogue Scholar

language
Publicados in rOpenSci - open tools for open science
Autores Maëlle Salmon, Scott Chamberlain, Stefanie Butland

Last year we reported on the joy of using commonmark and xml2 to parseMarkdown content, like the source of this website built withHugo, in particular to extractlinks,at the time merely to count them. How about we go a bit further and usethe same approach to find links to be fixed? In this tech note we shallreport our experience using R to find broken/suboptimal links and fixthem.What is a bad URL?

Publicados in rOpenSci - open tools for open science
Autor Scott Chamberlain

webmockr webmockr is an R library for stubbing and setting expectations on HTTP requests.It is a port of the Ruby gem webmock. webmockr works by plugging in to another R package that does HTTP requests. It currently only works with crul right now, but we plan to add support for curl and httr later.