unbuntu下R包安裝報錯問題

2021-08-08 16:39:43 字數 834 閱讀 2551

閒著將r公升級到最近的3.4.1,然後出現了乙個之前從未遇到過的乙個問題,以此做記錄。

r.version()

[1] "r version 3.4.1 (2017-06-30)"
安裝 plotly包時出現問題報錯

報錯內容:

package installation error: "c++11 standard requested but cxx11 is not defined"
修改/etc/makeconf 檔案

remove/comment out:

cxx1x = 

cxx1xflags =

cxx1xpicflags =

cxx1xstd =

replace with:

cxx11 = g++

cxx11flags = -o2 -g $(lto)

cxx11picflags = -fpic

cxx11std = -std=c++11

remove/comment out:

shlib_cxx1xld = $(cxx1x)

$(cxx1xstd)

shlib_cxx1xldflags = -shared

replace with:

shlib_cxx11ld = $(cxx11)

$(cxx11std)

shlib_cxx11ldflags = -shared

r語言安裝r包

cran,bioconductor還有github。bioconductor一般都是生物資訊方面的r包。github是 的託管平台,很多軟體,多種語言的程式包也都在這裡發布。install.packages dyplr 注意 更改映象 options repos c cran options bio...

unbuntu下的軟體安裝方式

ubuntu下軟體安裝與解除安裝 一 unbuntu下的軟體安裝方式 或者 python 軟體名.py 二 終端安裝與解除安裝的常見命令 安裝軟體 apt get install softname1 softname2 softname3 解除安裝軟體 apt get remove softname...

R包的安裝

記錄小知識點,我的r版本是r 2.15.3 安裝r包的兩種方式 手動安裝 r console 上的package install package 選擇映象 然後選擇要安裝的包 命令安裝 install.packages xlsx install.packages c devtools matrixe...