Skip to content
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

Unclear build instructions and tmuxr failure #144

Open
gl-yziquel opened this issue Sep 27, 2023 · 0 comments
Open

Unclear build instructions and tmuxr failure #144

gl-yziquel opened this issue Sep 27, 2023 · 0 comments

Comments

@gl-yziquel
Copy link

Hi.

I've been trying to build the book from source on ubuntu.

The documentation is rather unclear as to how this book should be built.

After some dependency hunting, I am now hitting the following wall, which seems to be linked to tmuxr behaviour:

mini-me@virtucon ~/h/c/d/b/2e (master)> Rscript --vanilla -e 'bookdown::render_book("index.Rmd", encoding = "UTF-8", clean = FALSE)'
processing file: index.Rmd
output file: index.knit.md
processing file: foreword.Rmd
output file: foreword.knit.md
processing file: preface.Rmd
output file: preface.knit.md
processing file: 01.Rmd
  |.......                                             |  13% [console_start]  
Quitting from lines 6-7 [console_start] (01.Rmd)
Error:
! tmux: can't find pane: %405
Backtrace:
  1. global console_start()
  2. knitractive::start(...)
  3. engine$start()
  4. rexpect::expect_prompt(self$session)
  5. rexpect::ends_with_prompt(session)
  8. rexpect::read_last_line(session)
  9. tmuxr::capture_pane(session, start = n, end = n)
 10. tmuxr::tmux_command("capture-pane", flags)
Execution halted
Error in Rscript_render(f, render_args, render_meta, add1, add2) : 
  Failed to compile 01.Rmd
Calls: <Anonymous> -> render_new_session -> Rscript_render
Execution halted
mini-me@virtucon ~/h/c/d/b/2e (master) [1]> 

Is this behaviour potentially linked to the fact that I am already using tmux for my daily work ? (I've been building this OUT of tmux, but with another tmux running along, which is necessary for my current work, and which I cannot kill; when building INSIDE tmux, the command above kills the pane in which it is being executed, which is unfortunate.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant