Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 为什么编织pdf_文档要花很长时间?_R_R Markdown_Knitr - Fatal编程技术网

R 为什么编织pdf_文档要花很长时间?

R 为什么编织pdf_文档要花很长时间?,r,r-markdown,knitr,R,R Markdown,Knitr,我正试图在RStudio中编织一个pdf\u文档,但它花了很长时间,只是在编织第一个春卷?我试图重新安装RStudio并删除.rhistore,但仍然无法工作。你知道为什么它不能生成pdf文档,以及如何解决这个问题吗 这是rmarkdown文件: --- title: "Title" author: "Author" date: "29/5/2020" output: pdf_doc

我正试图在RStudio中编织一个
pdf\u文档
,但它花了很长时间,只是在编织第一个春卷?我试图重新安装RStudio并删除
.rhistore
,但仍然无法工作。你知道为什么它不能生成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()
      )

    ```

但它永远不会完成。。。需要几个小时

我能给你的最大帮助就是你陷入了图书馆的困境。因此,请尝试一次一个地删除其中的元素,直到您通过该块,以查看哪一行是问题所在。

谢谢您,Justin,我尝试过这样做,并且还更改了块的顺序,先创建了
全局选项,但不管是什么,仍然会卡在第一块上。再次感谢:)我不确定,老实说,对不起。除了重新安装并尽量避免弄乱全局选项之外,我想不出还有什么别的办法。祝你好运不用担心,谢谢。
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