r - Rmd 在编织到 html 时提供未映射的内存
问题描述
我正在运行一个 Rmd 脚本,它通过“网状”结合了 python 和 R 代码。我可以很好地运行整个代码(“重新启动 R 并运行所有块”),但是在编织它时我经常会遇到这个错误,这会阻止我将文件编织到 html
*** caught segfault ***
address 0xb8, cause 'memory not mapped'
An irrecoverable exception occurred. R is aborting now ...
作为参考,我的针织选项是:
knitr::opts_chunk$set(fig.width = 12,
fig.height = 8,
results = "asis",
message = FALSE,
tidy = TRUE,
warning = FALSE
)
删除脚本的随机部分,可以是 R 块、Python 块或只是 markdown 文本,有时可以解决问题并编译文档。谁能给我任何关于如何解决这个问题的建议?
运行 python 3.7.1
、 rstudio 1.2.502
、 r-base 3.5.1
。
R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: macOS 10.15.5
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /path/to/conda/env/lib/R/lib/libRblas.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] tools stats graphics grDevices utils datasets methods base
other attached packages:
[1] limma_3.40.0 reticulate_1.15
loaded via a namespace (and not attached):
[1] compiler_3.5.1 Matrix_1.2-18 yaml_2.2.1 Rcpp_1.0.4.6 grid_3.5.1 knitr_1.28 jsonlite_1.6.1 xfun_0.13 lattice_0.20-41
解决方案
推荐阅读
- r - ggplot2:两个数值变量的 geom_boxplot 表示问题
- android - 推送通知不显示或立即消失 [CodenameOne]
- c# - 是否刷新顶级流最终会刷新顶级流隐式包装的所有嵌套流?
- angular - Angular Mat 表格突出显示一列
- mongodb - MongoDB - 唯一字符串字段约束
- c# - C# Api 图像从 url 到图片框。抛出异常
- ruby-on-rails - 通过 AJAX 登录后设计重定向回上一个
- sas - 具有可变部分的 SAS 文件路径
- github-actions - 我应该使用个人访问令牌从 GitHub Actions 访问 ghcr 吗?
- node.js - Discord.js:ReferenceError:消息未定义