在Pandoc和RGL中将HTML编织为html的问题

时间:2019-06-13 13:25:50

标签: r r-markdown knitr pandoc rgl

我正在尝试将带有rmarkdown的代码导出到html。我正在使用geomorph软件包进行几何形态计量学分析。在我的绘图中,我有一些用RGL绘制的3D模型。正在发生的错误:

pandoc.exe: Out of memory
Error: pandoc document conversion failed with error 251
In addition: Warning messages:
1: In rgl.snapshot(...) :
  RGL: PNG Pixmap Saver Warning: Image width is zero in IHDR
2: In rgl.snapshot(...) :
  RGL: PNG Pixmap Saver Warning: Image height is zero in IHDR
3: In rgl.snapshot(...) : RGL: PNG Pixmap Saver Error: Invalid IHDR data
4: In rgl.snapshot(...) : RGL: PNG Pixmap Saver Error: an error occured
5: In rgl.snapshot(...) : 'rgl.snapshot' failed

无效的代码是:

#Creating mesh
require(knitr,quietly = T)
require(abind,quietly = T)
afflongiseta.mand.ldk<-read.morphologika(filelist = "afflongiseta_w.txt")
dimnames(afflongiseta.mand.ldk)[[3]][1]<-"afflongiseta_w"
afflongiseta.mand<-read.ply("afflongiseta_w.ply",ShowSpecimen = F)
m.w.mand<-mshape(mand.w.gpa$coords)
m.longiseta.mand<-warpRefMesh(mesh = afflongiseta.mand,mesh.coord = afflongiseta.mand.ldk[,,1],ref = m.w.mand)
#Ploting PC1 minor
require(knitr,quietly = T)
require(abind,quietly = T)
knit_hooks$set(webGL = hook_webgl)
PC1.w.mand<-plotTangentSpace(mand.w.gpa$coords, warpgrids = T, mesh=m.longiseta.mand, label = class.mand.w$Species, axis1 = 1,axis2 = 2)

我的pandoc版本是1.19.2.1

0 个答案:

没有答案