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的版本不匹配 (卸载当前版本,安装旧版本)
网络速度太慢,或网络连接不通