小编rug*_*tub的帖子

R 中的 webshot.js 问题

我的目标是将数据帧、aov 输出等保存为已由 R 包处理的图像,该包将 r 数据格式化为科学期刊就绪格式,例如sjPlot.

>library(sjPlot)
>library(webshot)
>library(tableHTML)

>tab_df(df, alternate.rows = T, title = "Table 1 - Site-Event", col.header = c("Event", "Site", "Volume\n(mm)", "Total\nRainfall\n(mm)", "Runoff\nRatio\n(%)", "24 hour\nRainfall\n(mm)", "7 day\nRainfall\n(mm)", "Max\nrainfall\nIntensity\n(mm/hr)", "Response\nTime\n(hours)", "Max Flow\nRate\n(mm/hr)","TP Load\n(g/ha)", "SRP Load\n(g/ha)", "PP Load\n(g/ha)"), file = "/home/ryrugg80/working/Table_1.html")
Run Code Online (Sandbox Code Playgroud)

当我运行webshot尝试转换以下内容的 html 输出时,我最初收到此错误sjPlot

> webshot("/home/ryrugg80/working/Table_1.html", "/home/ryrugg80/working/Table_1.png")
Auto configuration failed
135096819605120:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:185:filename(libssl_conf.so): libssl_conf.so: cannot open shared object file: No such file or directory
135096819605120:error:25070067:DSO support routines:DSO_load:could not …
Run Code Online (Sandbox Code Playgroud)

r sjplot tablehtml

6
推荐指数
1
解决办法
795
查看次数

标签 统计

r ×1

sjplot ×1

tablehtml ×1