(Under ubuntu), I try:
install.packages("png")
and get:
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/home/kaveh/R/x86_64-pc-linux-gnu-library/3.2/png/libs/png.so':
libpng16.so.16: cannot open shared object file: No such file or directory
I thought it has to due with libpng
being obselete but I have already installed it from this link using:
./configure
make check
make install
so I don't really know what more to do~
You may be missing the libpng*
headers in order to build from source. On my machine(s), I have package libpng12-dev installed. Ensure you have it too, and then try installing png
again.
Also note that
R> capabilities()["png"]
png
TRUE
R>
so your default build of R should already have the ability to create png files.