小编con*_*IkE的帖子

R- 在 Rmarkdown 中绘图时文件名无效错误

我刚刚在公司的 Windows 64 位 PC 上安装了 Rstudio 1.0.44。当我尝试制作任何情节时,出现此错误:

Error in (function (filename = "Rplot%03d.png", width = 480, height = 480,  : invalid 'filename'
Run Code Online (Sandbox Code Playgroud)

现在回溯向我展示了这个信息:

8. stop("invalid 'filename'")
7. (function (filename = "Rplot%03d.png", width = 480, height = 480, units = "px", pointsize = 12, 
 bg = "white", res = NA, family = "sans", restoreConsole = TRUE,
 type = c("windows", "cairo", "cairo-png"), antialias = c("default", "none", "cleartype", "gray", "subpixel")) ...
6. do.call(what = png, args = args)
5. .rs.createNotebookGraphicsDevice(filename, height, width, …
Run Code Online (Sandbox Code Playgroud)

plot r rstudio r-markdown rnotebook

5
推荐指数
1
解决办法
2445
查看次数

标签 统计

plot ×1

r ×1

r-markdown ×1

rnotebook ×1

rstudio ×1