out-6ren">
gpt4 book ai didi

r - `Error in file(con, "r ") : cannot open the connection` 来自运行 BRugsFit()

转载 作者:行者123 更新时间:2023-12-01 23:59:23 25 4
gpt4 key购买 nike

我有关于 Error in file(con, "r") : cannot open the connection 运行 BRugsFit() 的错误。我假设所有输入参数都很好,调用代码是

> output = BRugsFit("model.txt", data, inits, numChains = 2, seed=6, parametersToSave,nBurnin = 100,nIter = 1000, nThin = 5, coda = T,digits = 5)

****
* BlackBox
* string too long
- HostFiles.Init (pc=00003FB1, fp=BFFDE550)
- HostFiles.$$ (pc=0000000A, fp=BFFDE560)
****
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
cannot open file '/tmp/RtmpU7v9PZ/buffer.txt': No such file or directory

所以我想知道错误的原因可能是什么,如何解决?非常感谢!

最佳答案

它告诉您文件 model.txt 不存在。尝试指明文件的完整路径:

output <- BRugsFit("/path/to/file/model.txt", data, inits, numChains = 2, seed=6, parametersToSave,nBurnin = 100,nIter = 1000, nThin = 5, coda = T,digits = 5)

或者先用setwd设置工作目录:

setwd("/path/to/file/")

关于r - `Error in file(con, "r ") : cannot open the connection` 来自运行 BRugsFit(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22255924/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com