How to install Ebimage package for version 3.3.0 and 3.3.1 of R?

Asked

Viewed 231 times

0

First, I make it clear that I have already downloaded the version of both 3.3.0 and 3.3.1 of CRAN, normally, and uninstalled all previous versions, I have also used the commands: remove.Packages("abind"), remove.Packages("Ebimage"), remove.Packages("Biocinstaller")and removed from my library (win-library) the "abmi" folders, "biocGenerics", "Biocinstaller".

By following the steps indicated on the Bioconductor website, I used the commands:

source("https://bioconductor.org/biocLite.R")

presented the following message:

> Installing package into ‘C:/Users/Gean/Documents/R/win-library/3.3’
> (as ‘lib’ is unspecified) trying URL
> 'https://bioconductor.org/packages/3.3/bioc/bin/windows/contrib/3.3/BiocInstaller_1.22.3.zip'

Content type 'application/zip' length 119756 bytes (116 KB)
downloaded 116 KB

package ‘BiocInstaller’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\Gean\AppData\Local\Temp\RtmpEnNb2N\downloaded_packages
Bioconductor version 3.3 (BiocInstaller 1.22.3), ?biocLite for help

next step was the following code:

> biocLite("EBImage")

Who submitted the following message:

BioC_mirror: https://bioconductor.org
Using Bioconductor 3.3 (BiocInstaller 1.22.3), R 3.3.0 (2016-05-03).
Installing package(s) ‘EBImage’
also installing the dependencies ‘BiocGenerics’, ‘abind’

trying URL 'https://bioconductor.org/packages/3.3/bioc/bin/windows/contrib/3.3/BiocGenerics_0.18.0.zip'
Content type 'application/zip' length 966930 bytes (944 KB)
downloaded 944 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/abind_1.4-5.zip'
Content type 'application/zip' length 40195 bytes (39 KB)
downloaded 39 KB

trying URL 'https://bioconductor.org/packages/3.3/bioc/bin/windows/contrib/3.3/EBImage_4.14.2.zip'
Content type 'application/zip' length 11238868 bytes (10.7 MB)
downloaded 5.3 MB

package ‘BiocGenerics’ successfully unpacked and MD5 sums checked
package ‘abind’ successfully unpacked and MD5 sums checked
Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : 
  cannot open the connection
In addition: Warning messages:
1: In download.file(url, destfile, method, mode = "wb", ...) :
  downloaded length 5537792 != reported length 11238868
2: In unzip(zipname, exdir = dest) : error 1 in extracting from zip file
3: In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) :
  cannot open compressed file 'EBImage/DESCRIPTION', probable reason 'No such file or directory'
> library(EBImage)
Error in library(EBImage) : there is no package called ‘EBImage’
> biocLite("EBImage")
BioC_mirror: https://bioconductor.org
Using Bioconductor 3.3 (BiocInstaller 1.22.3), R 3.3.0 (2016-05-03).
Installing package(s) ‘EBImage’
trying URL 'https://bioconductor.org/packages/3.3/bioc/bin/windows/contrib/3.3/EBImage_4.14.2.zip'
Content type 'application/zip' length 11238868 bytes (10.7 MB)
downloaded 10.7 MB

package ‘EBImage’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\Gean\AppData\Local\Temp\RtmpEnNb2N\downloaded_packages
Old packages: 'cluster', 'codetools', 'foreign', 'lattice', 'Matrix', 'mgcv', 'nlme', 'survival'
Update all/some/none? [a/s/n]: 
n
> library(EBImage)
Error in library.dynam(lib, package, package.lib) : 
  DLL ‘tiff’ not found: maybe not installed for this architecture?
Error: package or namespace load failed for ‘EBImage’

I can not understand, in case someone has been able to install, please help me!

  • Strange situation. I managed to install this package on macOS and Window. If you still haven’t been able to install the package, try again, run the command sessionInfo() and paste his output into your original post. Who knows how we’ll get an idea of what’s going on.

  • Marcus Nunes, thanks again, but I believe that happened those things that R does, because as identified problems in DLL 'tiff", I just asked R to install the 'tiff' package again, error appeared for the other image formats, I did the same procedure and now it works! Thank you!

  • 1

    Except it all worked out in the end. I suggest you answer this question yourself so that in the future other users of the site know how the problem was solved, even if it was in a seemingly random way.

1 answer

0

I was going to comment below the question because I do not have an accurate answer, but as I still do not have enough reputation I can not comment, so I will leave a hint here.

Looks like you’re missing a DLL

DLL ‘tiff’ not found: maybe not installed for this architecture?

It is a library used for image data, access here to see more and download it. Probably, why you cannot load the package EBImage.

  • Rafael, unfortunately this is not the problem, although it presented this error while repeating the process the ero presenting was another, ie is not DLL problem. and I confess that I will not install any executable so! thanks for the good will!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.