0
可以將包R.cache
與包parallel
一起使用。 我正在做一些非常耗時的計算,我想使用緩存並行。R:使用並行寫入磁盤
平行作業是彼此獨立的。但是我無法在羣集上加載R.cache軟件包。
library(parallel)
library(R.cache)
cl <- makeCluster(getOption("cl.cores", 2))
clusterExport(cl,varlist = ls())
clusterEvalQ(cl, library(R.cache))
## Error in checkForRemoteErrors(lapply(cl, recvResult)) :
## 2 nodes produced errors; first error: there is no package called ‘R.cache’
您使用的是哪種發行版? RRO(現在的Microsoft R)使用SIMD和多核操作並使用該磁盤處理比內存中的內容更多的數據。 –
我使用的是免費的。 R是用於統計計算和圖形的免費軟件環境。 – DJJ
你的代碼適合我。你是否爲'R.chache'選擇了一個永久或臨時目錄? – cryo111