我试图从 R 中调用 stan 的一些输出,但我在 linux 上得到了最奇怪的错误消息:
capture.output ({fit <- rstan::stan(filename_temp,
data = X,
chains = chains,
cores = ifelse(n_cores>=4,4,n_cores),
init = init,
iter = iter,
verbose = F,
warmup=warmup,
refresh = refresh,
thin = thin,
pars=parameter_names,
control = list(adapt_delta = acceptance_prob),
...)}, file = output_file,append=T)
投掷Couldn't get a file descriptor referring to the console
最奇怪的事情:这不会发生在具有浏览器界面的 R Studio Server 上,其中操作系统是相同的。我很高兴发布一个小的可重现代码片段,但希望答案是我所缺少的显而易见的东西。