r - 为什么编织 pdf_document 需要很长时间?
问题描述
我正在尝试pdf_document
在 RStudio 中编织一个,但它需要永远,只停留在编织第一块?我尝试重新安装 RStudio 并删除.Rhistory
但仍然无法正常工作。知道为什么它无法生成 pdf 文档以及如何解决问题吗?
这是rmarkdown
文件:
---
title: "Title"
author: "Author"
date: "29/5/2020"
output:
pdf_document:
fig_caption: yes
extra_dependencies:
epigrafica: null
fontenc:
- LGR
- OT1
float: null
header-includes: \usepackage{float} \floatplacement{figure}{H}
editor_options:
chunk_output_type: inline
---
\tableofcontents
```{r libraries, include=FALSE}
library(ggbio)
library(EnsDb.Hsapiens.v75)
library(Homo.sapiens)
library(showtext)
font_add_google(name='Nunito')
showtext_auto()
```
```{r global-options, include=FALSE}
knitr::opts_chunk$set(
fig.pos = 'H',
cache = TRUE,
fig.align = 'center',
results = 'asis',
echo = TRUE,
)
```
```{r transcripts, echo=FALSE, fig.showtext=TRUE, message=FALSE, warning=FALSE}
ensdb <- EnsDb.Hsapiens.v75
ggbio::autoplot(
ensdb,
GeneNameFilter("BRCA2"),
fill = "#56B4E9",
color = "black",
size = 0.1,
gap.geom = "segment"
) +
theme_bw() +
theme(
panel.grid.major.y = element_blank(),
panel.grid.minor.y = element_blank(),
panel.grid.major.x = element_blank(),
panel.grid.minor.x = element_blank(),
panel.border = element_blank()
)
```
rmarkdown::render('/Users/A/Desktop/GitHub/A/rmd/Report.Rmd', encoding = 'UTF-8');
processing file: Report.Rmd
|. | 2%
ordinary text without R code
|... | 4%
label: libraries (with options)
List of 1
$ include: logi FALSE
但它永远不会继续完成......需要几个小时
解决方案
我能提供的最大帮助是你被困在库块上。所以尝试一次从那里删除一个元素,直到你越过那个块,看看哪一行是问题所在。
推荐阅读
- java - 是否可以检索 RDF4J 事务的更新语句?
- python - 在 tensorflow 计算机视觉建模中在哪里定义批量大小?
- ios - SwiftUI 中的自定义 URL 方案
- tomcat - 以最少的停机时间更新 Tomcat webapp
- node.js - 开玩笑测试无法匹配部分对象
- telerik - 当控制器 [Telerik] 的方法出现异常时,如何取消从剑道网格中删除的项目?[解决了]
- r - 从 R 中的文本文件写入 Sybase IQ 数据库表
- python - 通过 Python 脚本/代码获取特定的 dict 值
- c++ - 如何弃用 C++ 标头?
- mysql - 将两个相等的条件放入一个 WHERE 子句 - SQL