Identifies and reads Windows BMP, JPEG, PNG, and TIFF format bitmap images. Identification defaults to the use of the magic number embedded in the file rather than the file extension. Reading of JPEG and PNG image depends on libjpg and libpng libraries. See file INSTALL for details if necessary.
readbitmap is a simple R package that provides a function
read.bitmap to read
standard bitmap format images, identifying them by their image header
(or magic value)
rather than relying on the file extension.
if (!require("devtools")) install.packages("devtools")devtools::install_github('jefferis/readbitmap')
For Windows, binary installs of the jpeg and png packages include the libjpeg and lipng available on winbuilder and therefore no system library is required. The winbuilder libraries are part of a collection provied by Brian Ripley at:
The file is called
local323.zip at the time of writing.
For windows users building from source, the libraries are part of the Rtools bundle available at:
NEWS.mdfile to track changes to the package.