csgillespie / efficientR

Efficient R programming: a book
https://csgillespie.github.io/efficientR/
Other
720 stars 375 forks source link

Build failing #256

Closed Robinlovelace closed 4 years ago

Robinlovelace commented 4 years ago

Heads-up @csgillespie we should fix the build as a matter of priority IMO.

aegerton commented 4 years ago

@Robinlovelace when trying to knit index.Rmd, I get an error message Line 2956 in _main.Rmd that appears to relate to the following code;-

pivot_longer(pew)
csgillespie commented 4 years ago

@Robinlovelace If you have a look at this, I'll tackle the build issues.

Robinlovelace commented 4 years ago

OK @csgillespie I'll try to fix the build.

Robinlovelace commented 4 years ago

I'm now getting this error message:

Quitting from lines 2956-2957 (_main.Rmd) 
Error: `cols` must select at least one column.
Backtrace:
     █
  1. ├─bookdown::render_book(...)
  2. │ └─bookdown:::render_cur_session(...)
  3. │   └─rmarkdown::render(...)
  4. │     └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
  5. │       └─knitr:::process_file(text, output)
  6. │         ├─base::withCallingHandlers(...)
  7. │         ├─knitr:::process_group(group)
  8. │         └─knitr:::process_group.block(group)
  9. │           └─knitr:::call_block(x)
 10. │             └─knitr:::block_exec(params)
 11. │               ├─knitr:::in_dir(...)
 12. │               └─knitr:::evaluate(...)
 13. │                 └─evaluate::evaluate(...)
 14. │                   └─evaluate:::evaluate_call(...)
 15. │                     ├─evaluate:::timing_fn(...)
 16. │                     ├─base:::handle(...)
 17. │                     ├─base::withCallingHandlers(...
In addition: Warning message:
In file.remove("voc_voyages.xlsx") :
  cannot remove file 'voc_voyages.xlsx', reason 'No such file or directory'

Please delete _main.Rmd after you finish debugging the error.
Execution halted
make: *** [Makefile:2: html] Error 1
The command '/bin/sh -c cd /home/rstudio &&   wget https://github.com/csgillespie/efficientR/archive/master.zip &&   unzip master.zip &&   mv efficientR-master /home/rstudio/efficientR &&   cd efficientR &&   make html' returned a non-zero code: 2
csgillespie commented 4 years ago

Knit chapter6 by itself and you'll see the issue

On Sun, 26 Apr 2020, 19:10 Robin, notifications@github.com wrote:

I'm now getting this error message:

Quitting from lines 2956-2957 (_main.Rmd)

Error: cols must select at least one column.

Backtrace:

  1. ├─bookdown::render_book(...)

  2. │ └─bookdown:::render_cur_session(...)

  3. │ └─rmarkdown::render(...)

  4. │ └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)

  5. │ └─knitr:::process_file(text, output)

  6. │ ├─base::withCallingHandlers(...)

  7. │ ├─knitr:::process_group(group)

  8. │ └─knitr:::process_group.block(group)

  9. │ └─knitr:::call_block(x)

    1. │ └─knitr:::block_exec(params)

    2. │ ├─knitr:::in_dir(...)

    3. │ └─knitr:::evaluate(...)

    4. │ └─evaluate::evaluate(...)

    5. │ └─evaluate:::evaluate_call(...)

    6. │ ├─evaluate:::timing_fn(...)

    7. │ ├─base:::handle(...)

    8. │ ├─base::withCallingHandlers(...

In addition: Warning message:

In file.remove("voc_voyages.xlsx") :

cannot remove file 'voc_voyages.xlsx', reason 'No such file or directory'

Please delete _main.Rmd after you finish debugging the error.

Execution halted

make: *** [Makefile:2: html] Error 1

The command '/bin/sh -c cd /home/rstudio && wget https://github.com/csgillespie/efficientR/archive/master.zip && unzip master.zip && mv efficientR-master /home/rstudio/efficientR && cd efficientR && make html' returned a non-zero code: 2

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/csgillespie/efficientR/issues/256#issuecomment-619597846, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJVQI43X7BJ2FI7I2BZM7LROR2INANCNFSM4MASHXTA .

Robinlovelace commented 4 years ago

Good news: fixed in working Docker image:

image

Robinlovelace commented 4 years ago

:tada:

image

Robinlovelace commented 4 years ago

Is it up-to-date online though @csgillespie ?

Couldn't see the updates here https://csgillespie.github.io/efficientR/data-carpentry.html#tidying-data-with-tidyr-and-regular-expressions