vlothec / TRASH

RepeatIdentifier
MIT License
50 stars 3 forks source link

Error with seqinr during install #26

Closed bibionid closed 2 months ago

bibionid commented 2 months ago

Hello,

Thanks for you work on this cool looking tool!

I'm tyring to do a regular install.

I used Mamba to create an environment as described in the docs

I then ran

bash Install_TRASH.sh

I got the error

[1] "loading seqinr"
Downloading package from url: http://cran.us.r-project.org/src/contrib/Archive/seqinr/seqinr_4.2-8.tar.gz
segmented (NA -> 2.1-0 ) [CRAN]
ade4      (NA -> 1.7-22) [CRAN]
Skipping 1 packages not available: MASS
Installing 3 packages: MASS, segmented, ade4
Installing packages into ‘/hpc-home/user/installs/TRASH-main/libs’
(as ‘lib’ is unspecified)
Warning: dependency ‘MASS’ is not available
trying URL 'http://cran.us.r-project.org/src/contrib/segmented_2.1-0.tar.gz'
Content type 'application/x-gzip' length 305990 bytes (298 KB)
==================================================
downloaded 298 KB

trying URL 'http://cran.us.r-project.org/src/contrib/ade4_1.7-22.tar.gz'
Content type 'application/x-gzip' length 3365194 bytes (3.2 MB)
==================================================
downloaded 3.2 MB

ERROR: dependency ‘MASS’ is not available for package ‘segmented’
* removing ‘/hpc-home/user/installs/TRASH-main/libs/segmented’
ERROR: dependency ‘MASS’ is not available for package ‘ade4’
* removing ‘/hpc-home/user/installs/TRASH-main/libs/ade4’

The downloaded source packages are in
    ‘/tmp/RtmpPAMNTe/downloaded_packages’
Installing package into ‘/hpc-home/user/installs/TRASH-main/libs’
(as ‘lib’ is unspecified)
ERROR: dependencies ‘ade4’, ‘segmented’ are not available for package ‘seqinr’
* removing ‘/hpc-home/user/installs/TRASH-main/libs/seqinr’
Error in library("seqinr", quietly = TRUE, warn.conflicts = FALSE, lib.loc = .libPaths()[1]) :
  there is no package called ‘seqinr’
In addition: Warning messages:
1: package ‘MASS’ is not available for this version of R
‘MASS’ version 7.3-61 is in the repositories but depends on R (>= 4.4.0)
‘MASS’ version 7.3-61 is in the repositories but depends on R (>= 4.5)

A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
2: In i.p(...) :
  installation of package ‘segmented’ had non-zero exit status
3: In i.p(...) : installation of package ‘ade4’ had non-zero exit status
4: In i.p(...) :
  installation of package ‘/tmp/RtmpPAMNTe/remotes2c75e466d68fb2/seqinr’ had non-zero exit status
Execution halted

I'd be really grateful of any suggestions!

bibionid commented 2 months ago

Solved by creating the mamba env with the below:

mamba create -n name -c conda-forge r-base=4.4.1 zlib
mamba activte name

then running

R
setrepo = getOption("repos")
setrepo["CRAN"] = "http://cran.uk.r-project.org"
options(repos = setrepo)
rm(setrepo)
q()

bash Install_TRASH.sh