HajkD / LTRpred

De novo annotation of young retrotransposons
https://hajkd.github.io/LTRpred/
GNU General Public License v2.0
45 stars 8 forks source link

Error: Failed to install 'LTRpred' from GitHub: (converted from warning) package ‘amap’ is not available (for R version 3.5.1) #6

Closed CristianRiccio closed 5 years ago

CristianRiccio commented 5 years ago

When I run biocLite("HajkD/LTRpred"), I get the following message:

Failed to install 'LTRpred' from GitHub: (converted from warning) package ‘amap’ is not available (for R version 3.5.1)

Does that mean that LTRpred cannot be installed on R version 3.5.1? Do you have a recommended R version?

I work on macOS High Sierra.

HajkD commented 5 years ago

Hi @CristianRiccio

As you can see from the amap package repo, the most recent version of amap requires at least R 3.6.0.

However, I now moved the amap package to a suggested package dependency rather than a required package dependency in LTRpred which should allow you to install LTRpred with R 3.5.1.

I hope this helps?

Cheers, Hajk

CristianRiccio commented 5 years ago

Thanks, I now have another error:

** package ‘data.table’ successfully unpacked and MD5 sums checked
** libs
clang -I"/Users/user/anaconda/envs/ltrpred/lib/R/include" -DNDEBUG   -I/Users/user/anaconda/envs/ltrpred/include   -fPIC  -mmacosx-version-min=10.9  -m64 -fPIC  -c assign.c -o assign.o
In file included from assign.c:1:
In file included from ./data.table.h:1:
/Users/user/anaconda/envs/ltrpred/lib/R/include/R.h:55:11: fatal error: 'stdlib.h' file not found
# include <stdlib.h> /* Not used by R itself, but widely assumed in packages */
          ^~~~~~~~~~
1 error generated.
make: *** [/Users/user/anaconda/envs/ltrpred/lib/R/etc/Makeconf:160: assign.o] Error 1
ERROR: compilation failed for package ‘data.table’

Is it because my C compiler is clang instead of gcc?

HajkD commented 5 years ago

Could be because of the compiler ...

Short googling gave me:

https://github.com/Rdatatable/data.table/issues/3072

https://stackoverflow.com/questions/52469529/clang-error-in-installing-data-table-in-mac-os-high-sierra

https://github.com/Rdatatable/data.table/issues/2406

I hope this helps.

Cheers, Hajk