安装R包-scRNAtoolVis

2024-01-24  本文已影响0人  expgene

作者是ubuntu系统,在安装scRNAtoolVis的R包时出现问题,

devtools::install_github('junjunlab/scRNAtoolVis')

报错:

** package ‘magick’ successfully unpacked and MD5 sums checked

** using staged installation

Package Magick++ was not found in the pkg-config search path.

Perhaps you should add the directory containing `Magick++.pc'

to the PKG_CONFIG_PATH environment variable

No package 'Magick++' found

Using PKG_CFLAGS=

Using PKG_LIBS=-lMagick++-6.Q16

--------------------------- [ANTICONF] --------------------------------

Configuration failed to find the Magick++ library. Try installing:

- deb: libmagick++-dev (Debian, Ubuntu)

- rpm: ImageMagick-c++-devel (Fedora, CentOS, RHEL)

- csw: imagemagick_dev (Solaris)

- brew imagemagick@6 (MacOS)

If Magick++ is already installed, check that 'pkg-config' is in your

PATH and PKG_CONFIG_PATH contains a Magick++.pc file. If pkg-config

is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:

R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'

-------------------------- [ERROR MESSAGE] ---------------------------

<stdin>:1:10: fatal error: Magick++.h: No such file or directory

compilation terminated.

--------------------------------------------------------------------

ERROR: configuration failed for package ‘magick’

* removing ‘/mnt/data/lib/R/magick’

原因就是缺少libmagick库。

解决方案:

sudo apt-get install libmagick++-dev

wget https://cloud.r-project.org/src/contrib/magick_2.8.2.tar.gz --no-check-certificate

R CMD INSTALL magick_2.8.2.tar.gz

再进入R里面,devtools::install_github('junjunlab/scRNAtoolVis')

参考:

单细胞可视化工具:scRNAtoolVis /GseaVis

单细胞数据可视化R包 | scRNAtoolVis 0.0.3 版本更新

上一篇下一篇

猜你喜欢

热点阅读