R/getpicture.R

Defines functions getpicture

Documented in getpicture

#' Wrapper for oh.image.read that adds a contenttype
#' @param ... arguments passed on to oh.image.read
#' @return file with the photo image.
#' @export
getpicture <- function(...){
	myimage <- oh.image.read(...);
	
	attr(myimage, "CONTENTTYPE") <- "image/jpeg";
	return(myimage);
}
jeroenooms/Mobilize documentation built on May 19, 2019, 6:11 a.m.