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);
}

Try the Mobilize package in your browser

Any scripts or data that you put into this service are public.

Mobilize documentation built on May 30, 2017, 2:48 a.m.