# Error,Dependencies

**URL:** <https://forum.biobakery.org/t/error-dependencies/97>\
**Category:** MelonnPan\
**Created:** [December 24, 2019, 8:18am UTC](https://forum.biobakery.org/t/error-dependencies/97 "2019-12-24T08:18:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![CHALEAMKWAN\_POONPANA](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/chaleamkwan_poonpana/32/88_2.png) [@CHALEAMKWAN\_POONPANA](https://forum.biobakery.org/u/CHALEAMKWAN_POONPANA)\
**Post date:** [December 24, 2019, 8:18am UTC](https://forum.biobakery.org/t/error-dependencies/97/1 "2019-12-24T08:18:39Z")

</div>

Hello,  
When I try to install MelonnPan on R version 3.5 I got a problem which about  
" ERROR: dependencies ‘glmnet’, ‘GenABEL’, ‘GenABEL.data’ are not available for package ‘melonnpan’

- removing ‘/Users/chalaemkwan/Library/R/3.5/library/melonnpan’  
Error in i.p(…) : "  
Can anyone fix this problem for me, please?

---

<div class="post-metadata">

**Author:** ![jennydaman](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/jennydaman/32/92_2.png) [@jennydaman](https://forum.biobakery.org/u/jennydaman)\
**Post date:** [December 31, 2019, 8:27pm UTC](https://forum.biobakery.org/t/error-dependencies/97/2 "2019-12-31T20:27:51Z")

</div>

The latest version of [glmnet](https://cran.r-project.org/web/packages/glmnet/index.html) requires R version \>=3.6.0—it is not available for R version 3.5. The [bioBakery Vagrant image](https://bitbucket.org/biobakery/biobakery/wiki/biobakery_advanced#rst-header-install-biobakery-manually) uses glmnet version 2.0-18, which can be installed with this command.

```
R -q -e "devtools::install_version('glmnet', version = '2.0-18', repos = 'http://cran.us.r-project.org')"
```

---

<div class="post-metadata">

**Author:** ![jennydaman](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/jennydaman/32/92_2.png) [@jennydaman](https://forum.biobakery.org/u/jennydaman)\
**Post date:** [December 31, 2019, 8:29pm UTC](https://forum.biobakery.org/t/error-dependencies/97/3 "2019-12-31T20:29:24Z")

</div>

For GenABEL you should also be using the `devtools:install_version` command as mentioned here:

[https://bitbucket.org/biobakery/biobakery/wiki/melonnpan#rst-header-installation](https://bitbucket.org/biobakery/biobakery/wiki/melonnpan#rst-header-installation)

---

<div class="post-metadata">

**Author:** ![efratmuller](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/efratmuller/32/998_2.png) [@efratmuller](https://forum.biobakery.org/u/efratmuller)\
**Post date:** [January 22, 2020, 8:19am UTC](https://forum.biobakery.org/t/error-dependencies/97/4 "2020-01-22T08:19:52Z")

</div>

I’m using R 3.6.  
I was able to install GenABEL (and GenABEL.data), but the installation of melonnpan is failing due to:

`Error: (converted from warning) package 'glmnet' was built under R version 3.6.2`  
`Execution halted`

Any ideas how to fix this?

Many many thanks

---

<div class="post-metadata">

**Author:** ![pman](https://avatars.discourse-cdn.com/v4/letter/p/ee59a6/32.png) [@pman](https://forum.biobakery.org/u/pman)\
**Post date:** [June 10, 2022, 3:06pm UTC](https://forum.biobakery.org/t/error-dependencies/97/5 "2022-06-10T15:06:29Z")

</div>

I think there is not a version of GenABEL compatible with newer versions of R. Mine is R version 4.2.0.  
Here is what I’ve tried and I don’t know what else to try.

I am using this command to try to install GenABEL  
devtools::install\_version(“GenABEL”, version = “1.8-0”, repos = “[http://cran.us.r-project.org](http://cran.us.r-project.org)”)

I get a compilation fail error message and “Skipping 1 packages not available: GenABEL.data” even though GenABEL.data is installed and loads with no problems.  
If I use-  
install.packages(“GenABEL\_1.8-0.tar.gz”, repos = NULL,type= “source”)  
I get a similar error as before:  
export\_plink.cpp:116:39: warning: array subscript is of type ‘char’ [-Wchar-subscripts]  
fileWoA \<\< " " \<\< Genotype[gtMatrix[i][csnp]];  
^ ~~~~~~~~~~~~~~~~~  
1 warning generated.  
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/usr/local/include -fPIC -Wall -g -O2 -c fexact.c -o fexact.o  
fexact.c:1025:6: error: use of undeclared identifier ‘PROBLEM’  
PROBLEM “Bug in FEXACT: gave negative key” RECOVER(NULL\_ENTRY);  
^  
fexact.c:1806:5: error: use of undeclared identifier ‘PROBLEM’  
PROBLEM “FEXACT error %d.\n%s”, icode, mes RECOVER(NULL\_ENTRY);  
^  
2 errors generated.  
make: \*\*\* [fexact.o] Error 1  
ERROR: compilation failed for package ‘GenABEL’

- removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/GenABEL’  
Warning in install.packages :  
installation of package ‘GenABEL\_1.8-0.tar.gz’ had non-zero exit status

---

<div class="post-metadata">

**Author:** ![himel.mallick](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/himel.mallick/32/1757_2.png) [@himel.mallick](https://forum.biobakery.org/u/himel.mallick)\
**Post date:** [June 12, 2022, 2:48am UTC](https://forum.biobakery.org/t/error-dependencies/97/6 "2022-06-12T02:48:16Z")

</div>

Hi all - I just pushed an update to circumvent the dependency issue. Would you please try installing the current version from GitHub? Let me know if you encounter any issues with the latest version.

Many thanks,  
Himel

---

<div class="post-metadata">

**Author:** ![pman](https://avatars.discourse-cdn.com/v4/letter/p/ee59a6/32.png) [@pman](https://forum.biobakery.org/u/pman)\
**Post date:** [June 22, 2022, 11:58am UTC](https://forum.biobakery.org/t/error-dependencies/97/7 "2022-06-22T11:58:32Z")

</div>

Hi. I was able to install it no problem today with devtools::install\_github(“biobakery/melonnpan”)  
So it seems like your update worked! Thanks 🙂
