“long vectors not supported yet” error in Rmd but not in R Script

前端 未结 2 1541
陌清茗
陌清茗 2020-12-15 02:33

I am operating matrices with R 3.1 and RStudio 0.99.

I have my R Script and with cmd+enter it works without problem.

I created an Rmd for reporting but I ha

相关标签:
2条回答
  • 2020-12-15 02:58

    I am getting the same error in my .rmd file while trying to knit it to pdf. The incriminated code chunk was cached.

    Is there a way to bypass that error?

    Removing the 'cache = TRUE' or setting it to FALSE seems to fix the issue.

    0 讨论(0)
  • 2020-12-15 03:02

    I also ran into this today, and fixed it by using cache.lazy = FALSE in the setup chunk in my .Rmd.

    So what is inside of the first chunk in my R Markdown file looks like this:

    library(knitr)
    knitr::opts_chunk$set(cache = TRUE, warning = FALSE, 
                          message = FALSE, cache.lazy = FALSE)
    
    0 讨论(0)
提交回复
热议问题