-
-
Notifications
You must be signed in to change notification settings - Fork 878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autodep regression by #2321 #2344
Comments
FYI, adding
|
I will |
Don't you need an initial |
Sorry for being silent. |
Thank you @atusy. Here is my current understanding:
Now my setup chunk looks like this: #| cache: false
knitr::opts_chunk$set(cache = TRUE)
knitr::opts_chunk$set(autodep = TRUE)
if (dir.exists(knitr::opts_chunk$get("cache.path"))) knitr::dep_auto() # NEW! It seems a little redundant. How about modifying
|
Thank you, too. Your understanding is right. I am trying to automate
I am against this because I remember a book (R Markdown Cookbook?) recommends |
I partially solved the issue by automatically calling However, this implementation does not work well when there is a child document. |
Both items are done now. You don't need to run |
I forgot to mention that the cache system in litedown is much simpler and smarter than knitr's. The dependency structure of code chunks is automatically inferred from static analysis of the code, so in most cases, there's no need to use options like |
Hi @yihui , |
litedown's cache system has been factored out to |
The option
autodep=TRUE
does not work since #2321 even with the simplest example as follows:Modifying
x
insrc
chunk should invalidate the cache of the dependent chunkdst
, but is ignored in the latest version. I have tried different versions withpak::pkg_install("yihui/knitr")
. Here are the results:"yihui/knitr@v1.45"
"yihui/knitr@74bcff85455a9f92a3099abecba1a8d70ab0cfa4"
74bcff8"yihui/knitr@f36e52cf39abba3be261e8e957c92587c63fa599"
f36e52c"yihui/knitr@v1.46"
"yihui/knitr"
HEADBy filing an issue to this repo, I promise that
xfun::session_info('knitr')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/knitr')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: