В настоящее время у меня возникают проблемы с установкой пакета в Rstudio.Я думаю, что мой код правильный, но во многих случаях он просто не удался, используя два метода.Результат был вставлен здесь.
Команда:
library(devtools)
install_github("epurdom/clusterExperiment")
Первый результат для установки с github.
ld: warning: directory not found for option '
L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [clusterExperiment.so] Error 1
ERROR: compilation failed for package ‘clusterExperiment’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/clusterExperiment’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/clusterExperiment’
Installation failed: Command failed (1)
Команда:
source("https://bioconductor.org/biocLite.R")
biocLite("clusterExperiment")
Второй дляустановка из Bioconductor.
BioC_mirror: https://bioconductor.org
Using Bioconductor 3.7 (BiocInstaller 1.30.0), R 3.5.1 (2018-07-02).
Installing package(s) ‘clusterExperiment’
试开URL’https://bioconductor.org/packages/3.7/bioc/bin/macosx/el-capitan/contrib/3.5/clusterExperiment_2.0.2.tgz'
Content type 'application/x-gzip' length 11318597 bytes (10.8 MB)
==================================================
downloaded 10.8 MB
The downloaded binary packages are in
/var/folders/rw/m1prpj417277f5fzdbwdxwwh0000gn/T//RtmpCkjRZv/downloaded_packages
Old packages: 'ape'
Update all/some/none? [a/s/n]:
a
There is a binary version available but the source version is later:
binary source needs_compilation
ape 5.1 5.2 TRUE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) Yes
installing the source package ‘ape’
## Skip some progress here ##
ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [ape.so] Error 1
ERROR: compilation failed for package ‘ape’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/ape’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/ape’
The downloaded source packages are in
‘/private/var/folders/rw/m1prpj417277f5fzdbwdxwwh0000gn/T/RtmpCkjRZv/downloaded_packages’
Warning message:
In install.packages(update[instlib == l, "Package"], l, repos = repos, :
installation of package ‘ape’ had non-zero exit status
Кто-нибудь знает, что случилось?
Затем я установил homebrew, затем gcc, затем gfortran (OS X Lion (10.7): скачать gfortran 4.8.2) Хотяпакет, кажется, успешно установлен, когда я его библиотеку, он не работает.Rstudio сообщает, что:
package or namespace load failed for ‘clusterExperiment’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
package named ‘robustbase’ doesn't exist.
Поэтому я установил пакет robustbase, а затем только что получил несколько предупреждений после библиотеки
> library(clusterExperiment)
Warning: namespace ‘data.table’ is not available and has been replaced
by .GlobalEnv when processing object ‘slm’
Warning: namespace ‘data.table’ is not available and has been replaced
by .GlobalEnv when processing object ‘slm’
Warning: namespace ‘bigmemory’ is not available and has been replaced
by .GlobalEnv when processing object ‘slm’
Warning: namespace ‘bigmemory’ is not available and has been replaced
by .GlobalEnv when processing object ‘slm’
Надеюсь, это не будет иметь большого значения.
Ниже приведены все мои коды:
source("https://bioconductor.org/biocLite.R")
biocLite("clusterExperiment")
library(clusterExperiment)
install.packages("devtools")
library(devtools)
# install_github("epurdom/clusterExperiment")
source("https://bioconductor.org/biocLite.R")
biocLite("SingleCellExperiment")
install_github("drisso/fletcher2017data")
library(fletcher2017data)
library(SingleCellExperiment)