參加擴增子培訓分析篙挽,需要使用到一些包战转,然而译仗,我自己的電腦上也有一些包租悄,在使用某些函數(shù)的時候套腹,就容易出現(xiàn)問題链峭,于是解決方案就是對于這個項目盹牧,使用特定的包的路徑通危,這樣就完美的解決了熄守。
主要使用到的:
file.edit(".Rprofile")
# edit project specific .Rprofile
.CUSTOM_LIB = "C:/Users/R/R_Library" # set your custom library location
if(!dir.exists(.CUSTOM_LIB)){
dir.create(.CUSTOM_LIB)
}
.libPaths(c(.CUSTOM_LIB, .libPaths()))
message("Using library: ", .libPaths()[1])