R 語言安裝包出現錯誤(最難解決的問題)


 

In install.packages(update[instlib == l, "Package"], l, repos = repos,  :
  installation of package ‘tinytex’ had non-zero exit status

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
  namespace 'xfun' 0.22 is being loaded, but >= 0.23 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'tinytex'

 

remove.packages("xfun")
require(devtools)
install_version("xfun", version = "0.23",repos = "http://cran.us.r-project.org")

 

  package ‘tinytext’ is not available (for R version 3.6.3)

Error in library(tinytext) : there is no package called ‘tinytext’

 > install.packages('tinytext')
--- Please select a CRAN mirror for use in this session ---
Warning message:
package ‘tinytext’ is not available (for R version 3.6.3)

 BiocManager::install("tinytext")

installation of package ‘RCurl’ had non-zero exit status

 

原因(解決方法):

采用不同的安裝方法;有些是bioconductor的包,需要用bioconductor安裝

有些是R的版本不匹配 (卸載當前版本,安裝舊版本)

網絡速度太慢,或網絡連接不通

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM