R ggsunburst安装

2024-10-03 19:29:33 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图按照these说明安装ggsunburst包。运行以下install package命令时,出现以下错误:

install.packages("http://genome.crg.es/~didac/ggsunburst/ggsunburst_0.0.10.tar.gz", repos=NULL, type="source")

Installing package into ‘C:/Users/urwa/Documents/R/win-library/3.4’ (as ‘lib’ is unspecified) trying URL 'http://genome.crg.es/~didac/ggsunburst/ggsunburst_0.0.10.tar.gz' Content type 'application/x-gzip' length 646077 bytes (630 KB) downloaded 630 KB

  • installing source package 'ggsunburst' ... ** R ** inst ** preparing package for lazy loading Warning: package 'ggplot2' was built under R version 3.4.4 ** help * installing help indices converting help for package 'ggsunburst' finding HTML links ... done ggsunburst html
    ggtree html
    icicle html
    nw_print html
    sunburst html
    sunburst_data html
    tile html
    ** building package indices ** testing if installed package can be loaded *
    arch - i386 Error : package 'rPython' is not installed for 'arch = i386' Error: loading failed Execution halted *** arch - x64 Warning: package 'ggplot2' was built under R version 3.4.4 ERROR: loading failed for 'i386'
  • removing 'C:/Users/urwa/Documents/R/win-library/3.4/ggsunburst' In R CMD INSTALL Warning in install.packages : running command '"C:/PROGRA~1/R/R-34~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\urwa\Documents\R\win-library\3.4" "C:/Users/urwa/AppData/Local/Temp/RtmpeSU5b9/downloaded_packages/ggsunburst_0.0.10.tar.gz"' had status 1 Warning in install.packages : installation of package ‘C:/Users/urwa/AppData/Local/Temp/RtmpeSU5b9/downloaded_packages/ggsunburst_0.0.10.tar.gz’ had non-zero exit status

编辑1:

我应该提一下我已经安装了rPython。安装ggburst时的错误消息是在成功安装rPython之后。我已经按照these说明安装了rPython。我收到了以下信息:

Installing rPython Installing 1 package: RJSONIO Installing package into ‘C:/Users/urwa/Documents/R/win-library/3.4’ (as ‘lib’ is unspecified) trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/RJSONIO_1.3-0.zip' Content type 'application/zip' length 1502339 bytes (1.4 MB) downloaded 1.4 MB

package ‘RJSONIO’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in C:\Users\urwa\AppData\Local\Temp\RtmpwJlp4O\downloaded_packages "C:/PROGRA~1/R/R-34~1.3/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \ "C:/Users/urwa/Downloads/rPython" --library="C:/Users/urwa/Documents/R/win-library/3.4" --install-tests

*installing source package 'rPython' ...

** libs

Warning: this package has a non-empty 'configure.win' file, so building only the main architecture

make: Nothing to be done for `all'.

installing to C:/Users/urwa/Documents/R/win-library/3.4/rPython/libs/x64

** R

** inst

** preparing package for lazy loading

** help

*** installing help indices

converting help for package 'rPython'

finding HTML links ... done python.assign html
python.call html
python.exec html
python.load html
** building package indices ** testing if installed package can be loaded * DONE (rPython) In R CMD INSTALL

我的系统规格

  • 窗户10 x64
  • R工作室1.1.423
  • 第3.4.3条
  • Python 3.6.5

任何帮助都将不胜感激。在

编辑1:

我把R更新到了3.5.0。重新安装ggplot2。重新运行ggburst的安装。省略ggplot部分后,错误仍然相同。以下是完整的输出:

Installing package into ‘C:/Users/urwa/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
trying URL 'http://genome.crg.es/~didac/ggsunburst/ggsunburst_0.0.10.tar.gz'
Content type 'application/x-gzip' length 646077 bytes (630 KB)
downloaded 630 KB

* installing *source* package 'ggsunburst' ...
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package 'ggsunburst'
    finding HTML links ... done
    ggsunburst                              html  
    ggtree                                  html  
    icicle                                  html  
    nw_print                                html  
    sunburst                                html  
    sunburst_data                           html  
    tile                                    html  
** building package indices
** testing if installed package can be loaded
*** arch - i386
Error : package 'rPython' is not installed for 'arch = i386'
Error: loading failed
Execution halted
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'C:/Users/urwa/Documents/R/win-library/3.5/ggsunburst'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘C:/Users/urwa/AppData/Local/Temp/RtmpS60ZhD/downloaded_packages/ggsunburst_0.0.10.tar.gz’ had non-zero exit status

Tags: packageforpackageshtmllibraryhelpwinusers