• R语言
  • 请问linux下如何更改R包安装路径以及两个错误

请问linux下如何更改R包安装路径:错误如下

'limma' cannot be updated, installed directory '/usr/local/bin/lib64/R/library'

not writeable

另外我在运行HCL聚类的时候,出现这个错误

> hr <- hclust(as.dist(1-cor(t(mydatascale), method="pearson")), method="complete")

Error in hclust(as.dist(1 - cor(t(mydatascale), method = "pearson")), :

NA/NaN/Inf in foreign function call (arg 11)

请高手帮我解答一下,谢谢