Get useful openair links
href.RdReturns URLs and, optionally, opens them in a browser.
Usage
href_book(open = FALSE, ...)
href_github(open = FALSE, ...)
href_pkgdown(package = "openair", open = FALSE, ...)Arguments
- open
If
TRUEwill useutils::browseURL()to open the link.- ...
Arguments passed on to
utils::browseURLbrowsera non-empty character string giving the name of the program to be used as the HTML browser. It should be in the PATH, or a full path specified. Alternatively, an R function to be called to invoke the browser.
Under Windows
NULLis also allowed (and is the default), and implies that the file association mechanism will be used.encodeIfNeededShould the URL be encoded by
URLencodebefore passing to the browser? This is not needed (and might be harmful) if thebrowserprogram/function itself does encoding, and can be harmful for file:// URLs on some systems and for http:// URLs passed to some CGI applications. Fortunately, most URLs do not need encoding.
- package
For
href_pkgdown(); which package to link to.