我试图用德雷克运行一个项目。make(plan)
运行良好,但在计划的最后一点之后我收到一个错误。
Error in file(private$total_file, "r+w") : cannot open connection
Additional Warning:
In file(private$total_file, "r+w") :
'C:\R_project\.drake/drake/history/total' cannot open file: Invalid argument
我在 Windows 系统上运行(带有\\
路径分隔符)。通常,R 使用/
路径约定并处理得很好。但不知何故,这里的路径搞砸了,我不知道为什么。
这是已知的并且有可用的解决方法吗?有人知道错误是在哪里产生的,所以我可以在德雷克代码中修复它吗?
谢谢!
示例代码:
plan2 = drake_plan(
loadRequirements = {
library(ggplot2)
}
)
vis_drake_graph(plan2)
make(plan2)
traceback() 的输出
> traceback()
20: file(private$total_file, "r+w")
19: private$txtq_inc_total(length(out))
18: private$txtq_push(title = title, message = message)
17: force(code)
16: private$txtq_exclusive(private$txtq_push(title = title, message = message))
15: config$cache$history$push(title = target, message = meta_hash)
14: store_meta(target = target, value = value, meta = meta, hash = hash,
config = config)
13: store_item(target = target, value = value, meta = meta, config = config)
12: store_outputs(target = target, value = value, meta = meta, config = config)
11: conclude_build_impl.default(value, target, meta, config)
10: conclude_build_impl(value, target, meta, config)
9: conclude_build(build, config)
8: local_build(target = targets[1], config = config, downstream = targets[-1])
7: loop_check(config)
6: drake_backend_loop(config)
5: drake_backend(config)
4: run_backend(config)
3: process_targets(config)
2: make_impl(config)
1: make(plan)