1
當我使用以下代碼將庫data.table加載到cpu集羣時,R會引發錯誤。但data.table包安裝在R上,並且在並行代碼之外使用時工作正常。無法將庫data.table加載到R並行
no_cores <- detectCores() - 1
cl <- makeCluster(no_cores,outfile="out.txt")
clusterEvalQ(cl, library(data.table))
錯誤: -
clusterEvalQ(cl, library(data.table)) Error in checkForRemoteErrors(lapply(cl, recvResult)) : 3 nodes produced errors; first error: there is no package called 'data.table'
您是否安裝了軟件包?簡單地說'library(data.table)'工作嗎? –
是的。我可以在並行代碼外面使用此包,但出現問題 – navo
無法重現錯誤。嘗試更新R和包,重新啓動會話等。 –