0

R バージョン 3.5.1 (Windows 7 x64 デスクトップ PC 上) をインストールした後、Rtools 3.5 と rstan (install.packages() 経由) をインストールしました。

Rstan は次のようにマルチコア サポートに失敗しています。

library(rstan)
rstan_options(auto_write = TRUE)
options(mc.cores = 3) # or any number above 2
fit <- stan(file = '8schools.stan', data = schools_dat, 
            iter = 3, chains = 4)

エラーあり:

Error in checkForRemoteErrors(val) : 
  4 nodes produced errors; first error: unable to load shared object 'C:/Users/ubashir/AppData/Local/Temp/RtmpIHGdm6/file194833bbb82.dll':
  LoadLibrary failure:  Access is denied.

ただし、オプション行を次のように変更すると:

options(mc.cores = 1) # or any other number up to 8

コードは機能します。1つのコアのみを使用する以外に解決策を知っている人はいますか? ありがとう

4

1 に答える 1