R/get_beard.R

#' get_beard
#'
#' Gets the link containing a picture of a bearded man
#'
#' @param width numeric
#' @param height numeric
#' @return link character
#' @export
#' @examples
#' get_beard(480, 640)
get_beard <- function(width, height){
	stopifnot(is.numeric(width))
	stopifnot(is.numeric(height))
	stopifnot(width > 0)
	stopifnot(height > 0)
	sprintf("![](http://placebeard.it/%s/%s)", width, height)
}
bdacunha/randompic documentation built on May 12, 2019, 3:39 a.m.