I'm using R 3.6.0 on a redhat7 machine. After I installed a new package, I got the following errors for loading ShortRead (used to work before the new package was installed):
Error: package or namespace load failed for ‘ShortRead’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘latticeExtra’
But when I tried to install latticeExtra, I got the following errors:
-
installing source package ‘png’ ...
** package ‘png’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
Error in if (nzchar(SHLIB_LIBADD)) SHLIB_LIBADD else character() :
argument is of length zero -
removing ‘/mnt/isilon/dbhi_bfx/miniconda_4c/lib/R/library/png’
-
installing source package ‘jpeg’ ...
** package ‘jpeg’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
Error in if (nzchar(SHLIB_LIBADD)) SHLIB_LIBADD else character() :
argument is of length zero -
removing ‘/mnt/isilon/dbhi_bfx/miniconda_4c/lib/R/library/jpeg’
ERROR: dependencies ‘png’, ‘jpeg’ are not available for package ‘latticeExtra’ -
removing ‘/mnt/isilon/dbhi_bfx/miniconda_4c/lib/R/library/latticeExtra’
The downloaded source packages are in
‘/scr1/users/zhangs3/scratch/RtmpihCmnh/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning messages:
1: In install.packages("latticeExtra") :
installation of package ‘png’ had non-zero exit status
2: In install.packages("latticeExtra") :
installation of package ‘jpeg’ had non-zero exit status
3: In install.packages("latticeExtra") :
installation of package ‘latticeExtra’ had non-zero exit status
But I already have png and jpeg available.
> capabilities()['png']
png
TRUE
> capabilities()['jpeg']
jpeg
TRUE
Anyone has suggestions for solving the problems? Thanks.