liana icon indicating copy to clipboard operation
liana copied to clipboard

Error while installing liana

Open sidrahmaryam-cyber opened this issue 2 years ago • 4 comments

Hello, I am trying to install liana using remotes::install_github('saezlab/liana')

However I face this issue: Error: Failed to install 'unknown package' from GitHub: Line starting 'Config/testthat/edit ...' is malformed!

Can you please let me know the possible reason or solution. Thank you so much in advance.

sidrahmaryam-cyber avatar Apr 10 '23 20:04 sidrahmaryam-cyber

Hi @sidrahmaryam-cyber,

I assume that it's an issue with a confilict in testthat versions

A solution is to install liana with a fresh R version (e.g. conda environment)

See these issues: https://github.com/saezlab/liana/issues/73 https://github.com/nhanhocu/metamicrobiomeR/issues/4

Hope this helps. Daniel

dbdimitrov avatar Apr 12 '23 09:04 dbdimitrov

Thank you so much for the response. However, I am still not able to install it. I tried various ways. I created conda environment, tried installing, and getting same error. Without the conda, I tried installing in head R, same issue. I followed the steps in the link, still same problem. :(

Regards, Sidrah

sidrahmaryam-cyber avatar Apr 12 '23 14:04 sidrahmaryam-cyber

Hi @sidrahmaryam-cyber,

In a replicated issue the author said that this worked for them by installing via source - e.g. glone and install locally. Hope this helps.

dbdimitrov avatar May 23 '23 17:05 dbdimitrov

as usual R error message may be confusing.

PB is a combination of using UTF8 char in DESCRIPTION and locale environment//support

just use plain ascii in DESCRIPTION file and installation goes smooth.

see:

> remotes::install_github("saezlab/liana")                                                                                                                                                                                                                                
Error: Failed to install 'unknown package' from GitHub:
  Line starting 'Config/testthat/edit ...' is malformed!

versus

> remotes::install_github("EricDeveaud/liana")

EricDeveaud avatar Jul 03 '24 05:07 EricDeveaud

I have addressed this in the update that I will push today.

dbdimitrov avatar Aug 06 '24 07:08 dbdimitrov