Cannot download “EBImage” library in R
1
0
Entering edit mode
Henry1234 • 0
@pakhang-24115
Last seen 4.1 years ago

I am using Windows, R version 4.0.3. I want to install the library "EBImage" so I entered the following command:

install.packages("BiocManager")
BiocManager::install("EBImage")

The following error is given:

Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘EBImage’
  These will not be installed

I have my C++ compiler installed.

Can Anyone show me the correct way to install the package? Any help is appreciated!

R EBImage • 2.6k views
ADD COMMENT
1
Entering edit mode

Instead of your C++ compiler installed, you may need Rtools to compile the package from source under Windows

ADD REPLY
0
Entering edit mode

Have you tried BiocManager::install("EBImage", type="source") This will compile by source. If it gives ERROR's please show the ERROR messages.

ADD REPLY
0
Entering edit mode

The following is shown:

Installation path not writeable, unable to update packages: codetools, KernSmooth, nlme
Old packages: 'digest', 'rlang', 'xfun'

I proceed to update them and this happened:

package ‘digest’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘digest’
Warning: restored ‘digest’
package ‘rlang’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘rlang’
Warning: restored ‘rlang’
package ‘xfun’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘xfun’
Warning: restored ‘xfun’
...
Warning messages:
1: In install.packages(...) :
  installation of package ‘EBImage’ had non-zero exit status
...
ADD REPLY
1
Entering edit mode

Not sure if it could help, but when updating a package, it's better to close all R/RStudio session to avoid potential use of the package (at least under Windows). Then start a R session with an empty environment, or a really new/empty RStudio project. Then update the package, and it should succeed because it is not loaded nor any of its dependencies (except the core packages). HTH

ADD REPLY

Login before adding your answer.

Traffic: 414 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6