You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With knitr 1.34 and bookdown 0.21 I get the following for gitbook - Error in get(name, envir = asNamespace(pkg), inherits = FALSE) : object 'is_abs_path' not found
#2042
Closed
3 tasks done
N0rbert opened this issue
Sep 10, 2021
· 4 comments
I have just configured fresh Ubuntu MATE 20.04.3 LTS virtual machine. As usual I installed here R and RStudio.
As you may remember I need to have bookdown 0.21 to get my project compiled (because of rstudio/bookdown#1202 ). I installed bookdown 0.21 using the following command:
R -e "require(devtools); install_version('bookdown', version = '0.21', repos = 'http://cran.rstudio.com')"
Then I tried to compile my 2 year old project using it and it failed.
After some research I wrote minimal reproducible example index.Rmd file with following contents:
---
title: Test for Knitr 1.34
date: "`r Sys.Date()`"
documentclass: book
site: bookdown::bookdown_site
output:
bookdown::gitbook: default
---
# Abstract {-#abstract}
This is simplest document to demonstrate the problem with modern Knitr 1.34.
If I click Knit button inside RStudio I get the following output on R Markdown tab:
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :
object 'is_abs_path' not found
Calls: <Anonymous> ... <Anonymous> -> <Anonymous> -> move_files_html -> ::: -> get
Please delete _main.Rmd after you finish debugging the error.
Execution halted
If I compile it using terminal inside RStudio by command rm _main.* ; Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::gitbook')" I get relatively same result:
The issue does not exist in previous Knitr 1.33, which was installed previously on my other system. I get the same document compiled successfully using it:
I have provided the necessary information about my issue.
If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included 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').
If I have posted the same issue elsewhere, I have also mentioned it in this issue.
I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
Thanks!
I have already decided to use older versions for both applications. Really I do not want to make my Rmd environment full of hacks and version locks.
I still hope that you revert is_abs_path removal for better compatibility.
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.
I have just configured fresh Ubuntu MATE 20.04.3 LTS virtual machine. As usual I installed here R and RStudio.
As you may remember I need to have bookdown 0.21 to get my project compiled (because of rstudio/bookdown#1202 ). I installed bookdown 0.21 using the following command:
Then I tried to compile my 2 year old project using it and it failed.
After some research I wrote minimal reproducible example
index.Rmd
file with following contents:If I click Knit button inside RStudio I get the following output on R Markdown tab:
If I compile it using terminal inside RStudio by command
rm _main.* ; Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::gitbook')"
I get relatively same result:The issue does not exist in previous Knitr 1.33, which was installed previously on my other system. I get the same document compiled successfully using it:
Please have a fallback for
is_abs_path
onknitr
side.By 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: