normalizePath将igraph导出到graphviz时出错
我试图将igraph从r导出到graphviz,但收到以下错误消息: normalizePath(path.expand(path)、winslash、mustWork)中出错: 路径[1]=“C:\R\graphviz-1.8.10.src.zip\graphviz-1.8.10”:系统找不到指定的路径 我运行的代码是:normalizePath将igraph导出到graphviz时出错,r,export,igraph,graphviz,R,Export,Igraph,Graphviz,我试图将igraph从r导出到graphviz,但收到以下错误消息: normalizePath(path.expand(path)、winslash、mustWork)中出错: 路径[1]=“C:\R\graphviz-1.8.10.src.zip\graphviz-1.8.10”:系统找不到指定的路径 我运行的代码是: dot.plot <- function(g) { tmpfile <- tempfile(pattern='dot', fileext='.dot') prin
dot.plot <- function(g) {
tmpfile <- tempfile(pattern='dot', fileext='.dot')
print(tmpfile)
g %>% write_graph(tmpfile, "dot")
handle <- spawn_process('C:\\R\\graphviz-1.8.10.src.zip\\graphviz-1.8.10', c('-Tpng', '-O', tmpfile))
Sys.sleep(5)
pngimg <- readPNG(paste(tmpfile, '.png', sep=''))
grid.raster(pngimg)
}
dot.plot是否安装了graphviz?看起来你试图从zip文件中运行一些东西,但这也是一个目录(我认为),我认为它至少应该有dot.exe
作为附加的可执行文件名。是的,我非常确定graphviz已经安装,我可以测试安装是否成功吗?在dotneato文件中,我看到:dot.1,dot.c,dot.dep,dot.dsp,dot.dsw,dot.mak、dot.ncb、dot.plg和更多但没有dot.exeChecking,查看是否可以在终端窗口中启动dot,例如,通过dot-V
您还可以发出命令where dot
,以查看可执行文件所在的位置。I文件graphviz-1.8.10.src.zip
graphviz当前版本为2.38的最新文件。您从哪里获得的graphviz-1.8.10.src.zip